[distributed] remove pynccl's redundant stream (#11744)

This commit is contained in:
cennn
2025-01-05 23:09:11 +08:00
committed by GitHub
parent 4068f4b5b5
commit 635b897246
3 changed files with 12 additions and 24 deletions
+1 -2
View File
@@ -310,8 +310,7 @@ class GroupCoordinator:
if not pynccl_comm:
maybe_pynccl_context = nullcontext()
else:
maybe_pynccl_context = pynccl_comm.change_state(
stream=torch.cuda.current_stream())
maybe_pynccl_context = pynccl_comm.change_state()
with maybe_pynccl_context:
yield graph_capture_context