Revert "Remove 2H4P condition from P2P channels adjustment (#890)" (#904)

This reverts commit 057e30e705.

[ROCm/rccl commit: a6ff4618c7]
이 커밋은 다음에 포함됨:
Bertan Dogancay 작성하고 GitHub가 2023-10-04 09:46:11 -06:00를 커밋함
1 부모 c0a707ea50
커밋 6f7965796f
1 파일이 변경됨
+1 -1
+1 -1
파일 보기
@@ -812,7 +812,7 @@ ncclResult_t ncclTopoComputeP2pChannels(struct ncclComm* comm) {
// Adjust P2P channels on Intel platform
comm->p2pnChannelsPerPeer = 1;
comm->p2pnChannels = 2;
} else if (comm->topo->nodes[GPU].count == comm->topo->nRanks && !(comm->topo->type & RCCL_TOPO_GDR_ALL) && !(comm->topo->type & RCCL_TOPO_XGMI_ALL)) {
} else if (comm->topo->nodes[GPU].count == comm->topo->nRanks && (comm->topo->type & RCCL_TOPO_4P2H_ROME) && !(comm->topo->type & RCCL_TOPO_GDR_ALL) && !(comm->topo->type & RCCL_TOPO_XGMI_ALL)) {
// Adjust P2P channels on Rome
comm->p2pnChannelsPerPeer = 2;
comm->p2pnChannels = 2;