summaryrefslogtreecommitdiff
path: root/src/cuda-sim/instructions.cc
diff options
context:
space:
mode:
authorJin Wang <[email protected]>2016-08-29 18:10:00 -0700
committerJin Wang <[email protected]>2016-09-02 16:16:47 -0700
commit623a88e5d5c6c3edb94404ef6e5ea100caec9deb (patch)
treef31c9c0a6ef6d0a641523222e4d4a554f6c59957 /src/cuda-sim/instructions.cc
parent2af85e353bccad8c8536c1d5f039361884b96872 (diff)
MOD: Add macros to turn off cuda_device_runtime for CUDA < 5.0
Diffstat (limited to 'src/cuda-sim/instructions.cc')
-rw-r--r--src/cuda-sim/instructions.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cuda-sim/instructions.cc b/src/cuda-sim/instructions.cc
index 5d909d3..e68f9fd 100644
--- a/src/cuda-sim/instructions.cc
+++ b/src/cuda-sim/instructions.cc
@@ -1414,6 +1414,7 @@ void call_impl( const ptx_instruction *pI, ptx_thread_info *thread )
return;
}
+#if (CUDART_VERSION >= 5000)
//Jin: handle device runtime apis for CDP
else if(fname == "cudaGetParameterBufferV2") {
gpgpusim_cuda_getParameterBufferV2(pI, thread, target_func);
@@ -1427,6 +1428,7 @@ void call_impl( const ptx_instruction *pI, ptx_thread_info *thread )
gpgpusim_cuda_streamCreateWithFlags(pI, thread, target_func);
return;
}
+#endif
// read source arguements into register specified in declaration of function
arg_buffer_list_t arg_values;