Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/graph/xml.cc
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,9 @@ ncclResult_t ncclTopoDumpXmlToFile(const char* xmlTopoFile, struct ncclXml* xml)
INFO(NCCL_GRAPH | NCCL_ENV, "Unable to open %s, not dumping topology.", xmlTopoFile);
return ncclSuccess;
}
NCCLCHECK(ncclTopoDumpXmlRec(0, file, xml->nodes));
ncclResult_t res = ncclTopoDumpXmlRec(0, file, xml->nodes);
fclose(file);
NCCLCHECK(res);
return ncclSuccess;
}

Expand Down Expand Up @@ -418,8 +419,9 @@ ncclResult_t ncclTopoGetXmlFromFile(const char* xmlTopoFile, struct ncclXml* xml
INFO(NCCL_GRAPH, "Loading topology file %s", xmlTopoFile);
struct xmlHandler handlers[] = {{"system", ncclTopoXmlLoadSystem}};
xml->maxIndex = 0;
NCCLCHECK(xmlLoadSub(file, xml, NULL, handlers, 1));
ncclResult_t res = xmlLoadSub(file, xml, NULL, handlers, 1);
fclose(file);
NCCLCHECK(res);
#elif NCCL_OS_WINDOWS
(void)xmlTopoFile;
(void)xml;
Expand Down Expand Up @@ -1259,8 +1261,9 @@ ncclResult_t ncclTopoGetXmlGraphFromFile(const char* xmlGraphFile, struct ncclXm
}
struct xmlHandler handlers[] = {{"graphs", ncclTopoXmlGraphLoadGraphs}};
xml->maxIndex = 0;
NCCLCHECK(xmlLoadSub(file, xml, NULL, handlers, 1));
ncclResult_t res = xmlLoadSub(file, xml, NULL, handlers, 1);
fclose(file);
NCCLCHECK(res);
return ncclSuccess;
}

Expand Down