resolved conflicts, fixed the localNetCount/0 bug

[ROCm/rccl commit: 0d515f9388]
This commit is contained in:
PedramAlizadeh
2023-12-18 08:11:34 +00:00
melakukan 401a104c5a
12 mengubah file dengan 107 tambahan dan 130 penghapusan
+1 -3
Melihat File
@@ -866,9 +866,7 @@ ncclResult_t ncclTopoComputeP2pChannels(struct ncclComm* comm) {
// fill the whole space of nChannels. To do so we mirror the bits in the
// nChannels space.
for (int c=0; c<comm->p2pnChannels; c++) {
int mirror = 0;
for (int b=1, mb=(comm->p2pnChannels>>1); b<comm->p2pnChannels; b<<=1, mb>>=1) if (c & b) mirror |= mb;
comm->p2pChannels[c] = mirror;
comm->p2pChannels[c] = mirrorBits(c, comm->p2pnChannels);
}
return ncclSuccess;
}