summaryrefslogtreecommitdiff
path: root/libcuda
diff options
context:
space:
mode:
authorDeval Shah <[email protected]>2018-11-16 11:45:11 -0800
committerDeval Shah <[email protected]>2018-11-16 11:45:11 -0800
commit9c13b6294f3f34d08f07b0381ce9cd43ca7156a1 (patch)
tree29402cdc9fc887e9cf318972f52369d435d40e6c /libcuda
parentde1b5702b2f12b8ca56b877fd1dd6f6b678aa397 (diff)
changes for cuda 5.5
Diffstat (limited to 'libcuda')
-rw-r--r--libcuda/cuda_runtime_api.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcuda/cuda_runtime_api.cc b/libcuda/cuda_runtime_api.cc
index 6346382..d47df42 100644
--- a/libcuda/cuda_runtime_api.cc
+++ b/libcuda/cuda_runtime_api.cc
@@ -378,7 +378,7 @@ struct _cuda_device_id *GPGPUSim_Init()
prop->textureAlignment = 0;
// * TODO: Update the .config and xml files of all GPU config files with new value of sharedMemPerBlock and regsPerBlock
prop->sharedMemPerBlock = the_gpu->shared_mem_per_block();
-#if (CUDART_VERSION > 5000)
+#if (CUDART_VERSION > 5050)
prop->regsPerMultiprocessor = the_gpu->num_registers_per_core();
prop->sharedMemPerMultiprocessor = the_gpu->shared_mem_size();
#endif
@@ -974,7 +974,7 @@ __host__ cudaError_t CUDARTAPI cudaGetDeviceProperties(struct cudaDeviceProp *pr
}
}
-#if (CUDART_VERSION > 5000)
+#if (CUDART_VERSION > 5050)
__host__ cudaError_t CUDARTAPI cudaDeviceGetAttribute(int *value, enum cudaDeviceAttr attr, int device)
{
if(g_debug_execution >= 3){