Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Binyang2014 committed Oct 28, 2024
1 parent db92968 commit 87fb118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msccl/language/instruction_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def circular_dep_after_merge(op: Op, other_op: Op):

"""
For case: op2.prev = [op1, op3]. op1.next = [op2]. op3.next = [op2]. And op1 and op2 are satisfied to merge.
We only apply the merge if all previous ops of op2 are visited after the merge.
We only apply the merge if all previous ops of op2 are visited. (op1 is the last previous op of op2).
"""
def all_prevs_visited_after_merge(op: Op, other_op: Op):
step = op.step
Expand Down

0 comments on commit 87fb118

Please sign in to comment.