Skip to content

Commit

Permalink
Setting type when gpu sub node is discovered
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Snyder authored and sjeaugey committed Aug 5, 2020
1 parent 3d63f89 commit de49a77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/graph/topo.cc
Expand Up @@ -320,6 +320,7 @@ ncclResult_t ncclTopoAddPci(struct ncclXmlNode* xmlPci, struct ncclTopoSystem* s
struct ncclXmlNode* xmlGpu = NULL;
NCCLCHECK(xmlGetSub(xmlPci, "gpu", &xmlGpu));
if (xmlGpu != NULL) {
type = GPU;
int index;
NCCLCHECK(xmlGetAttrIndex(xmlGpu, "rank", &index));
if (index == -1) return ncclSuccess;
Expand Down

0 comments on commit de49a77

Please sign in to comment.