Fix typo in previous hipify change (#645)

[ROCm/rccl commit: cf3c32a626]
This commit is contained in:
Wenkai Du
2022-11-15 11:51:47 -08:00
committed by GitHub
parent 03e5baa67d
commit ba18b77b07
+1 -1
View File
@@ -628,7 +628,7 @@ ncclResult_t ncclTopoGetXmlFromGpu(struct ncclXmlNode* pciNode, uint32_t rocmDev
if (index == -1) {
int cudaMajor, cudaMinor;
cudaDeviceProp devProp;
CUDACHECK(cudaGetDeviceProperties(&devProp, dev));
CUDACHECK(cudaGetDeviceProperties(&devProp, 0));
cudaMajor = devProp.major; cudaMinor = devProp.minor;
NCCLCHECK(xmlSetAttrInt(gpuNode, "sm", cudaMajor*10+cudaMinor));
}