Revert "2.18.5-1"

This reverts commit 26b91b9dbb.


[ROCm/rccl commit: 767fde8210]
This commit is contained in:
PedramAlizadeh
2024-01-12 16:54:19 +00:00
parent fc73c738ba
commit 7cc572ecf9
6 changed files with 115 additions and 82 deletions
+3 -1
View File
@@ -866,7 +866,9 @@ 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++) {
comm->p2pChannels[c] = mirrorBits(c, comm->p2pnChannels);
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;
}
return ncclSuccess;
}