From 41bead5a4e0d32f81529e6cf30782bc59778c0cb Mon Sep 17 00:00:00 2001 From: Wenkai Du Date: Tue, 8 Dec 2020 17:35:07 -0500 Subject: [PATCH] Do not allow GPU as intermediate [ROCm/rccl commit: 105db19a11dfe1617398fccfd7b75ac722e41769] --- projects/rccl/src/graph/paths.cc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/projects/rccl/src/graph/paths.cc b/projects/rccl/src/graph/paths.cc index 8f96627f67..381d263b44 100644 --- a/projects/rccl/src/graph/paths.cc +++ b/projects/rccl/src/graph/paths.cc @@ -87,14 +87,17 @@ static ncclResult_t ncclTopoSetPaths(struct ncclTopoNode* baseNode, struct ncclT // Consider a path going through the CPU as PATH_PHB if (link->type == LINK_PCI && (node->type == CPU || link->remNode->type == CPU)) type = PATH_PHB; // Set 1 hop NVLink as NVB - if (node->type == GPU && path->type == PATH_NVL && type == PATH_NVL && remPath->count > 1) type = PATH_NVB; + //if (node->type == GPU && path->type == PATH_NVL && type == PATH_NVL && remPath->count > 1) type = PATH_NVB; remPath->type = std::max(path->type, type); // Add to the list for the next iteration if not already in the list - int i; - for (i=0; itype != GPU) { + int i; + for (i=0; i