summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/gpu-sim.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/gpgpu-sim/gpu-sim.cc
parent2af85e353bccad8c8536c1d5f039361884b96872 (diff)
MOD: Add macros to turn off cuda_device_runtime for CUDA < 5.0
Diffstat (limited to 'src/gpgpu-sim/gpu-sim.cc')
-rw-r--r--src/gpgpu-sim/gpu-sim.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpgpu-sim/gpu-sim.cc b/src/gpgpu-sim/gpu-sim.cc
index 0b4b2f6..363fe5a 100644
--- a/src/gpgpu-sim/gpu-sim.cc
+++ b/src/gpgpu-sim/gpu-sim.cc
@@ -1513,8 +1513,10 @@ void gpgpu_sim::cycle()
try_snap_shot(gpu_sim_cycle);
spill_log_to_file (stdout, 0, gpu_sim_cycle);
+#if (CUDART_VERSION >= 5000)
//launch device kernel
launch_one_device_kernel();
+#endif
}
}