Misc fixes and disable binTree

[ROCm/rccl commit: a06e14e39b]
This commit is contained in:
Wenkai Du
2022-09-14 00:10:19 +00:00
parent 4a86adcaba
commit ba6e2db70d
3 changed files with 6 additions and 3 deletions
@@ -376,7 +376,8 @@ namespace {
const int nthreads = args->nWarps*WARP_SIZE;
const int bid = args->bid;
const int nChannels = args->nChannels;
ncclTree *tree = (args->pad_0 == 2) ? &ncclShmem->channel.binTree : &ncclShmem->channel.tree;
ncclTree *tree = &ncclShmem->channel.tree;
//ncclTree *tree = (args->pad_0 == 2) ? &ncclShmem->channel.binTree : &ncclShmem->channel.tree;
ssize_t chunkSize = int(
Proto::Id != NCCL_PROTO_LL ? args->lastChunkSize
: Proto::calcBytePerStep()/sizeof(T));
+1
View File
@@ -107,6 +107,7 @@ struct ncclChannel {
struct ncclRing ring;
int* devRingUserRanks;
struct ncclTree tree;
struct ncclTree binTree;
struct ncclDirect collTree;
int id; // index of this channel
uint32_t workFifoSent; // last used work index+1
+3 -2
View File
@@ -203,14 +203,15 @@ struct ncclWorkElem {
union {
uint8_t flagBits;
struct {
uint8_t isUsed:1, redOpArgIsPtr:1, regUsed:1, pad_0:1, nWarps:4;
uint8_t isUsed:1, redOpArgIsPtr:1, regUsed:1, nWarps:5;
};
};
uint8_t direct;
uint8_t bid;
uint8_t nChannels;
struct {
uint32_t root:30;
uint32_t root:28;
uint32_t pad_0:2;
uint32_t connIndex:2;
};