Replace CUDA_VERSION by CUDART_VERSION

[ROCm/rccl commit: c244b51ae7]
このコミットが含まれているのは:
Sylvain Jeaugey committed 2018-12-13 15:22:17 -08:00
1 親 6a93dca51b
コミット 4e32c7a19a
4ファイル変更
+6 -6

検索条件に一致するファイルはありません

+1 -1
ファイルの表示
@@ -18,7 +18,7 @@ static ncclResult_t PointerCheck(const void* pointer, struct ncclComm* comm, con
WARN("%s : %s is not a valid pointer", opname, ptrname);
return ncclInvalidArgument;
}
#if CUDA_VERSION >= 10000
#if CUDART_VERSION >= 10000
if (attr.type == cudaMemoryTypeDevice && attr.device != comm->cudaDev) {
#else
if (attr.memoryType == cudaMemoryTypeDevice && attr.device != comm->cudaDev) {
+1 -1
ファイルの表示
@@ -18,7 +18,7 @@
#include <stdlib.h>
#include <cuda_runtime.h>
#if CUDA_VERSION < 9000
#if CUDART_VERSION < 9000
struct cudaLaunchParams {
void *func;
dim3 gridDim;