diff --git a/loopy/kernel/creation.py b/loopy/kernel/creation.py index cc034ae5a63008a8a472a98eae4a56f6e2839325..14b18150f5b84218f39ba23662eb6106ffb596a0 100644 --- a/loopy/kernel/creation.py +++ b/loopy/kernel/creation.py @@ -1645,8 +1645,8 @@ def _resolve_dependencies(knl, insn, deps): if not found_any and knl.options.check_dep_resolution: raise LoopyError("instruction '%s' declared a depency on '%s', " "which did not resolve to any instruction present in the " - "kernel '%s'" - % (insn.id, dep, knl.name)) + "kernel '%s'. Set the kernel option 'check_dep_resolution'" + "to False to disable this check." % (insn.id, dep, knl.name)) for dep_id in new_deps: if dep_id not in knl.id_to_insn: diff --git a/loopy/options.py b/loopy/options.py index 0120ed17c779127e2e1800f02f718bac2900d8f1..25bb7014ce07a30c49f7f78d5a6325eaba36291d 100644 --- a/loopy/options.py +++ b/loopy/options.py @@ -98,7 +98,7 @@ class Options(ImmutableRecord): .. attribute:: check_dep_resolution Whether loopy should issue an error if a dependency - expressions does not match any instructions in the kernel. + expression does not match any instructions in the kernel. .. rubric:: Invocation-related options