Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions python/mscclpp/language/ir.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ def ir_to_json(program: Program):
# Expand extra dependencies into nop operations
nop = Op(Instruction.nop, -1, None, None, [])
for i, dep in enumerate(op.depends):
# barrier already syncs all threads
if dep.inst != Instruction.barrier:
# barrier already syncs all threads, only sync within the same threadblock
if dep.inst != Instruction.barrier and dep.tb == op.tb:
nop.depends.append(dep)
if len(new_ops) > 0 and (
new_ops[-1].inst == Instruction.barrier or new_ops[-1].inst == Instruction.nop
Expand Down
Loading