Optimize NCHANNELS and MSCCL config for gfx942 80CUs (#1195)
* Optimize NCHANNELS and MSCCL config for gfx942 80CUs Set appropriately for different NCCL_MIN_NCHANNELS and MSCCL config, potentially improving communication perf on the MI300x 80CUs * Delete tools/msccl-algorithms/allreduce_1step_mccl_8_2_16777216_LL.xml * Change the factor of gfx94 and update msccl config
This commit is contained in:
+13
-1
@@ -1390,6 +1390,18 @@ static ncclResult_t initTransportsRank(struct ncclComm* comm, struct ncclComm* p
|
||||
allGather3Data[rank].nc = std::max(allGather3Data[rank].nc, 4/ringGraph.nChannels);
|
||||
if (ringGraph.nChannels > MAXCHANNELS/2)
|
||||
allGather3Data[rank].nc = 1;
|
||||
if (IsArchMatch(comm->topo->nodes[GPU].nodes[idx].gpu.gcn, "gfx94")) {
|
||||
if (nranks == 2)
|
||||
// NCCL_MIN_NCHANNELS=32
|
||||
allGather3Data[rank].nc = 16;
|
||||
else if (nranks == 4)
|
||||
// NCCL_MIN_NCHANNELS=24
|
||||
allGather3Data[rank].nc = 6;
|
||||
else if (nranks == 8)
|
||||
// NCCL_MIN_NCHANNELS=56
|
||||
allGather3Data[rank].nc = 2;
|
||||
}
|
||||
|
||||
allGather3Data[rank].pivotA2AEnabled = comm->topo->pivotA2AEnabled && rcclParamPivotAlltoallEnable();
|
||||
comm->topo->ll128Enabled = comm->topo->ll128Enabled || rcclParamLL128ForceEnable();
|
||||
allGather3Data[rank].ll128Enabled = comm->topo->ll128Enabled;
|
||||
@@ -2788,4 +2800,4 @@ exit:
|
||||
return ret;
|
||||
fail:
|
||||
goto exit;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user