diff options
Diffstat (limited to 'src/graph/topo.cc')
-rw-r--r-- | src/graph/topo.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/graph/topo.cc b/src/graph/topo.cc index a917340..ed4bd23 100644 --- a/src/graph/topo.cc +++ b/src/graph/topo.cc @@ -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; |