From f4817fc722fb1c3bc056941215d0e280d0e04613 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Wed, 25 May 2016 16:18:42 +0200 Subject: [PATCH] Fix instruction printing of no_sync_with and atomicity --- loopy/kernel/data.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/loopy/kernel/data.py b/loopy/kernel/data.py index 9c399997d..c10e513bf 100644 --- a/loopy/kernel/data.py +++ b/loopy/kernel/data.py @@ -726,6 +726,8 @@ class InstructionBase(Record): if self.depends_on: result.append("deps="+":".join(self.depends_on)) + if self.no_sync_with: + result.append("nosync="+":".join(self.no_sync_with)) if self.groups: result.append("groups=%s" % ":".join(self.groups)) if self.conflicts_with_groups: @@ -734,7 +736,7 @@ class InstructionBase(Record): result.append("priority=%d" % self.priority) if self.tags: result.append("tags=%s" % ":".join(self.tags)) - if hasattr(self, "atomicity"): + if hasattr(self, "atomicity") and self.atomicity: result.append("atomic=%s" % ":".join(str(a) for a in self.atomicity)) return result -- GitLab