Setting type when gpu sub node is discovered

[ROCm/rccl commit: de49a77074]
This commit is contained in:
Jack Snyder authored and Sylvain Jeaugey committed 2020-08-05 13:39:23 -07:00
1 parent 149bf427d5
commit dca19952fd
1 file changed
+1
+1
View File
@@ -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;