8000 fixing multidevice build · NVIDIA/Fuser@5f8c84b · GitHub
Skip to content

Commit 5f8c84b

Browse files
committed
fixing multidevice build
API change coming from pytorch/pytorch#119421
1 parent 5822ff4 commit 5f8c84b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

csrc/multidevice/communication.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,8 @@ c10::intrusive_ptr<c10d::Work> Reduce::post(
236236
#ifdef USE_C10D_NCCL
237237
auto nccl_backend = dynamic_cast<c10d::ProcessGroupNCCL*>(team_backend.get());
238238
if (nccl_backend) {
239-
return nccl_backend->_reduce_oop(buf, params_.src_bufs, options);
239+
return nccl_backend->_reduce_oop(
240+
buf.at(0), params_.src_bufs.at(0), options);
240241
}
241242
#endif
242243
if (comm.deviceId() == params_.root) {

0 commit comments

Comments
 (0)
0