Check to support older ROCm versions (#963)

Αυτή η υποβολή περιλαμβάνεται σε:
Bertan Dogancay authored and GitHub committed 2023-11-15 12:36:31 -07:00
1 γονέας 7ae95db5b8
υποβολή 198f14923b
2 files changed
+24

No files matched your search

+4
Προβολή Αρχείου
@@ -14,7 +14,11 @@ static ncclResult_t CudaPtrCheck(const void* pointer, struct ncclComm* comm, con
WARN("%s : %s %p is not a valid pointer", opname, ptrname, pointer);
return ncclInvalidArgument;
}
#if ROCM_VERSION < 50500
if (attr.memoryType == cudaMemoryTypeDevice && attr.device != comm->cudaDev) {
#else
if (attr.type == cudaMemoryTypeDevice && attr.device != comm->cudaDev) {
#endif
WARN("%s : %s allocated on device %d mismatchs with NCCL device %d", opname, ptrname, attr.device, comm->cudaDev);
return ncclInvalidArgument;
}