From 87fb1188f4701cab9a9afbfb6eb389324201a0e8 Mon Sep 17 00:00:00 2001 From: Binyang Li Date: Mon, 28 Oct 2024 03:37:43 +0000 Subject: [PATCH] update comment --- msccl/language/instruction_dag.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msccl/language/instruction_dag.py b/msccl/language/instruction_dag.py index 52d84a7..d4622cc 100755 --- a/msccl/language/instruction_dag.py +++ b/msccl/language/instruction_dag.py @@ -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