From 4fe2bf78c3c99a8a524cebcab87d815dbdfd8388 Mon Sep 17 00:00:00 2001 From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de> Date: Mon, 27 Mar 2017 22:19:47 +0200 Subject: [PATCH] Fix documentation/error message of check_dep_resolution --- loopy/kernel/creation.py | 4 ++-- loopy/options.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/loopy/kernel/creation.py b/loopy/kernel/creation.py index cc034ae5..14b18150 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 0120ed17..25bb7014 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 -- GitLab