Collect gcnArch and hipDeviceArch_t in XML (#252)
[ROCm/rccl commit: 7e3d8a31cc]
This commit is contained in:
@@ -37,7 +37,7 @@ struct ncclXml {
|
||||
};
|
||||
|
||||
/* File functions */
|
||||
#define NCCL_TOPO_XML_VERSION 1
|
||||
#define NCCL_TOPO_XML_VERSION 2
|
||||
ncclResult_t ncclTopoGetXmlFromFile(const char* xmlTopoFile, struct ncclXml* xml);
|
||||
ncclResult_t ncclTopoDumpXmlToFile(const char* xmlTopoFile, struct ncclXml* xml);
|
||||
#define NCCL_GRAPH_XML_VERSION 1
|
||||
@@ -235,4 +235,10 @@ static ncclResult_t kvConvertToStr(int value, const char** str, struct kvDict* d
|
||||
return ncclInternalError;
|
||||
}
|
||||
|
||||
typedef union {
|
||||
hipDeviceArch_t arch;
|
||||
int value;
|
||||
static_assert(sizeof(hipDeviceArch_t) == sizeof(int),
|
||||
"value must be the same size of hipDeviceArch_t.");
|
||||
} rcclHipDeviceArch_t;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user