Skip to content

Commit

Permalink
Fix condition that checks if put operation can be fused (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsidler authored Jan 7, 2025
1 parent 25744c3 commit ceaf52f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions msccl/language/mscclpp/instruction_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ def try_fuse_with_put(self, op: Op, next_op: Op, tb: Threadblock, queue: list) -
:return: True if operations are merged, False otherwise.
"""
if (
next_op.inst == Instruction.put
or next_op.inst == Instruction.put_packet
(next_op.inst == Instruction.put
or next_op.inst == Instruction.put_packet)
and same_tb(op, next_op)
and same_count(op, next_op)
and buf_dst_src_match(op, next_op)
Expand Down

0 comments on commit ceaf52f

Please sign in to comment.