From 353be6b565f1dcb937fe084a827ad9e4e6cc9e1d Mon Sep 17 00:00:00 2001 From: Dominic Kempf Date: Mon, 7 Nov 2016 20:30:53 +0100 Subject: [PATCH] [bugfix] Define the comment field of barrier The scheduler uses it, so we need to set it. --- loopy/schedule/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/loopy/schedule/__init__.py b/loopy/schedule/__init__.py index ffef62cf8..9110c4ac0 100644 --- a/loopy/schedule/__init__.py +++ b/loopy/schedule/__init__.py @@ -1138,7 +1138,8 @@ def convert_barrier_instructions_to_barriers(kernel, schedule): if isinstance(insn, BarrierInstruction): result.append(Barrier( kind=insn.kind, - originating_insn_id=insn.id)) + originating_insn_id=insn.id, + comment="Barrier inserted due to %s" % insn.id)) continue result.append(sched_item) -- GitLab