diff options
| author | Jin Wang <[email protected]> | 2016-08-29 18:10:00 -0700 |
|---|---|---|
| committer | Jin Wang <[email protected]> | 2016-09-02 16:16:47 -0700 |
| commit | 623a88e5d5c6c3edb94404ef6e5ea100caec9deb (patch) | |
| tree | f31c9c0a6ef6d0a641523222e4d4a554f6c59957 /src/cuda-sim/cuda_device_runtime.h | |
| parent | 2af85e353bccad8c8536c1d5f039361884b96872 (diff) | |
MOD: Add macros to turn off cuda_device_runtime for CUDA < 5.0
Diffstat (limited to 'src/cuda-sim/cuda_device_runtime.h')
| -rw-r--r-- | src/cuda-sim/cuda_device_runtime.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cuda-sim/cuda_device_runtime.h b/src/cuda-sim/cuda_device_runtime.h index 385d605..6dbcd71 100644 --- a/src/cuda-sim/cuda_device_runtime.h +++ b/src/cuda-sim/cuda_device_runtime.h @@ -1,6 +1,6 @@ //Jin: cuda_device_runtime.h //Defines CUDA device runtime APIs for CDP support - +#if (CUDART_VERSION >= 5000) #pragma once void gpgpusim_cuda_getParameterBufferV2(const ptx_instruction * pI, ptx_thread_info * thread, const function_info * target_func); @@ -8,3 +8,4 @@ void gpgpusim_cuda_launchDeviceV2(const ptx_instruction * pI, ptx_thread_info * void gpgpusim_cuda_streamCreateWithFlags(const ptx_instruction * pI, ptx_thread_info * thread, const function_info * target_func); void launch_all_device_kernels(); void launch_one_device_kernel(); +#endif |
