diff --git a/src/collectives.cc b/src/collectives.cc index 04f2683528..cb488d97b8 100644 --- a/src/collectives.cc +++ b/src/collectives.cc @@ -142,14 +142,14 @@ ncclResult_t ncclAllToAllv_impl(const void *sendbuff, const size_t sendcounts[], NCCLCHECK(ncclCommCount(comm, &nRanks)); NCCLCHECK(ncclGroupStart()); for (int r=0; rWarpSize; elem.reg = proxyOp.reg; elem.p2pType = isSendNotRecv ? ncclWorkP2pTypeSend : ncclWorkP2pTypeRecv; @@ -628,7 +628,7 @@ static ncclResult_t addP2pToPlan( // Calculate the opCount after appendWorkElemP2p since it will always return // with channel->nWork equal to one plus the work index this p2p settled in. proxyOp.opCount = uint64_t(plan->channels[channelId].nWork)<<1 | 1; - if (addr != nullptr) NCCLCHECK(addProxyOpIfNeeded(comm, plan, &proxyOp)); + NCCLCHECK(addProxyOpIfNeeded(comm, plan, &proxyOp)); return ncclSuccess; }