File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
torch/csrc/distributed/c10d Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -1102,12 +1102,9 @@ bool ProcessGroupNCCL::useNonblocking() {
11021102 useNonblocking_ = nbEnv;
11031103 }
11041104 // 3rd priority: automatically use nonblocking if we are in eager init mode
1105- // Note: this automatic selection is disabled in torch 2.7.1 to work around a
1106- // hang in NCCL 2.26 in non-blocking mode. We can revisit if NCCL fixes the
1107- // bug. See https://github.com/pytorch/pytorch/issues/153960
1108- // else if (getBoundDeviceId()) {
1109- // useNonblocking_ = true;
1110- // }
1105+ else if (getBoundDeviceId ()) {
1106+ useNonblocking_ = true ;
1107+ }
11111108 // 4th priority: otherwise, nonblocking = false to preserve old behavior
11121109 else {
11131110 useNonblocking_ = false ;
You can’t perform that action at this time.
0 commit comments