10000 Update · pytorch/pytorch@4b820a8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4b820a8

Browse files
committed
Update
[ghstack-poisoned]
1 parent 0ecc3d3 commit 4b820a8

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

torch/csrc/distributed/c10d/ProcessGroupNCCL.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)
0