Change __CUDACC_VER_*__ preprocessor directives to CUDA_VERSION because clang doesn't define the former.

[ROCm/rccl commit: d08e9b5279]
此提交包含在:
Christian Sigg authored and Sylvain Jeaugey committed 2018-12-13 14:17:46 -08:00
1 父節點 7fa81a40a1
當前提交 457c2ab5ae
4 file changed
+6 -6

No files matched your search

+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 __CUDACC_VER_MAJOR__ >= 10
#if CUDA_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 __CUDACC_VER_MAJOR__ < 9
#if CUDA_VERSION < 9000
struct cudaLaunchParams {
void *func;
dim3 gridDim;