summaryrefslogtreecommitdiff
path: root/libcuda
diff options
context:
space:
mode:
authorDeval Shah <[email protected]>2018-11-16 12:04:29 -0800
committerDeval Shah <[email protected]>2018-11-16 12:04:29 -0800
commit58ea11608f1e404672af12f54751517cfd0d804e (patch)
treeda810895bd77cb562b581e3ba61a90e75f039b6e /libcuda
parent1b0d1f38032d923ee813c797d8d71a1645a19c0b (diff)
changes for cuda 5.5
Diffstat (limited to 'libcuda')
-rw-r--r--libcuda/cuda_runtime_api.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/libcuda/cuda_runtime_api.cc b/libcuda/cuda_runtime_api.cc
index 4497d35..95a3c24 100644
--- a/libcuda/cuda_runtime_api.cc
+++ b/libcuda/cuda_runtime_api.cc
@@ -974,7 +974,7 @@ __host__ cudaError_t CUDARTAPI cudaGetDeviceProperties(struct cudaDeviceProp *pr
}
}
-#if (CUDART_VERSION > 5050)
+#if (CUDART_VERSION > 5000)
__host__ cudaError_t CUDARTAPI cudaDeviceGetAttribute(int *value, enum cudaDeviceAttr attr, int device)
{
if(g_debug_execution >= 3){
@@ -1135,12 +1135,14 @@ __host__ cudaError_t CUDARTAPI cudaDeviceGetAttribute(int *value, enum cudaDevic
case 80:
*value= 0;
break;
+ #if (CUDART_VERSION > 5050)
case 81:
*value= prop->sharedMemPerMultiprocessor;
break;
case 82:
*value= prop->regsPerMultiprocessor;
break;
+ #endif
case 83:
case 84:
case 85:
@@ -3395,7 +3397,7 @@ CUresult CUDAAPI cuDeviceTotalMem(size_t *bytes, CUdevice dev)
return CUDA_SUCCESS;
}
#endif /* CUDART_VERSION >= 3020 */
-#if (CUDART_VERSION > 5050)
+#if (CUDART_VERSION > 5000)
CUresult CUDAAPI cuDeviceGetAttribute(int *pi, CUdevice_attribute attrib, CUdevice dev)
{
if(g_debug_execution >= 3){