From b2c491b6137fb06175ab3d733cf3ba33884c9ffd Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Sat, 10 Feb 2018 20:19:24 -0600
Subject: [PATCH] check_variable_access_ordered: Improve error message

---
 loopy/check.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/loopy/check.py b/loopy/check.py
index bd79cbea9..a45e8ee0c 100644
--- a/loopy/check.py
+++ b/loopy/check.py
@@ -514,8 +514,10 @@ def check_variable_access_ordered(kernel):
                             "'{writer_id}' which writes {var} and "
                             "'{other_id}' which also accesses {var}. "
                             "Either add a (possibly indirect) dependency "
-                            "between the two, or add one to the other's nosync set "
-                            "to indicate that no ordering is intended. "
+                            "between the two, or add them to each others' nosync "
+                            "set to indicate that no ordering is intended, or "
+                            "turn off this check by setting the "
+                            "'enforce_variable_access_ordered' option"
                             .format(
                                 writer_id=writer_id,
                                 other_id=other_id,
-- 
GitLab