Fix gcnArchName bug in topology dump (#937)

Signed-off-by: nileshnegi <Nilesh.Negi@amd.com>
This commit is contained in:
Nilesh M Negi
2023-10-28 12:30:36 -05:00
committed by GitHub
parent 4c117e5335
commit 1e5ca6820b
4 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -372,7 +372,7 @@ ncclResult_t ncclTopoAddGpu(struct ncclXmlNode* xmlGpu, struct ncclTopoSystem* s
const char* gcnArch;
const char* gcnArchName;
NCCLCHECK(xmlGetAttr(xmlGpu, "gcn", &gcnArch));
convertGcnArchToGcnArchName(gcnArch, gcnArchName);
convertGcnArchToGcnArchName(gcnArch, &gcnArchName);
gpu->gpu.gcn = strdup(gcnArchName);
rcclHipDeviceArch_t arch;
NCCLCHECK(xmlGetAttrInt(xmlGpu, "arch", &arch.value));
+1 -1
View File
@@ -650,7 +650,7 @@ ncclResult_t ncclTopoGetXmlFromGpu(struct ncclXmlNode* pciNode, uint32_t rocmDev
NCCLCHECK(xmlSetAttr(gpuNode, "gcn", gcn));
}
NCCLCHECK(xmlGetAttr(gpuNode, "gcn", &gcn));
convertGcnArchToGcnArchName(gcn, gcnArchName);
convertGcnArchToGcnArchName(gcn, &gcnArchName);
NCCLCHECK(xmlSetAttr(gpuNode, "gcn", gcnArchName));
rcclHipDeviceArch_t arch;