Replace CUDA_VERSION by CUDART_VERSION

Este cometimento está contido em:
Sylvain Jeaugey cometeu 2018-12-13 15:22:17 -08:00
1 ascendente 3e6afef473
cometimento c244b51ae7
4 ficheiros modificados
+6 -6

Não existem ficheiros que correspondam à sua pesquisa

+1 -1
Ver ficheiro
@@ -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
Ver ficheiro
@@ -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;