diff --git a/loopy/schedule/__init__.py b/loopy/schedule/__init__.py index f27ae49e80bc19989cf6e4e002c03ebb7a637b78..29c208766ed4e361bb89c0eb97c5f7f890c4a2fb 100644 --- a/loopy/schedule/__init__.py +++ b/loopy/schedule/__init__.py @@ -1606,7 +1606,10 @@ def append_barrier_or_raise_error(schedule, dep, verify_only): comment = "for %s (%s)" % ( dep.variable, dep.dep_descr.format( tgt=dep.target.id, src=dep.source.id)) - schedule.append(Barrier(comment=comment, kind=dep.var_kind)) + schedule.append(Barrier( + comment=comment, + kind=dep.var_kind, + originating_insn_id=None)) def insert_barriers(kernel, schedule, kind, verify_only, level=0):