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.cc | |
| 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.cc')
| -rw-r--r-- | src/cuda-sim/cuda_device_runtime.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/cuda-sim/cuda_device_runtime.cc b/src/cuda-sim/cuda_device_runtime.cc index 12c83d2..4a8ffe5 100644 --- a/src/cuda-sim/cuda_device_runtime.cc +++ b/src/cuda-sim/cuda_device_runtime.cc @@ -1,9 +1,15 @@ //Jin: cuda_device_runtime.cc //Defines CUDA device runtime APIs for CDP support + #include <iostream> #include <map> +unsigned long long g_total_param_size = 0; +unsigned long long g_max_total_param_size = 0; + + +#if (CUDART_VERSION >= 5000) #define __CUDA_RUNTIME_API_H__ #include <builtin_types.h> @@ -59,8 +65,6 @@ public: std::map<void *, device_launch_config_t> g_cuda_device_launch_param_map; std::list<device_launch_operation_t> g_cuda_device_launch_op; extern stream_manager *g_stream_manager; -unsigned long long g_total_param_size = 0; -unsigned long long g_max_total_param_size = 0; //Handling device runtime api: //void * cudaGetParameterBufferV2(void *func, dim3 gridDimension, dim3 blockDimension, unsigned int sharedMemSize) @@ -313,4 +317,4 @@ void launch_all_device_kernels() { launch_one_device_kernel(); } } - +#endif |
