Collect gcnArch and hipDeviceArch_t in XML (#252)

[ROCm/rccl commit: 7e3d8a31cc]
This commit is contained in:
Wenkai Du
2020-08-12 15:48:38 -07:00
committed by GitHub
orang tua f309fb5b29
melakukan f242a2f0b0
24 mengubah file dengan 201 tambahan dan 169 penghapusan
+7 -1
Melihat File
@@ -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