RCCL should use hipPointerAttribute_t.type (#872)

[ROCm/rccl commit: 6230b5f6b3]
이 커밋은 다음에 포함됨:
Bertan Dogancay 작성하고 GitHub가 2023-09-05 09:44:12 -06:00를 커밋함
1 부모 009990efca
커밋 2aa31c89df
1 파일이 변경됨
-4
-4
파일 보기
@@ -14,11 +14,7 @@ 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 CUDART_VERSION >= 10000
if (attr.type == cudaMemoryTypeDevice && attr.device != comm->cudaDev) {
#else
if (attr.memoryType == 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;
}