diff options
| author | Mengchi Zhang <[email protected]> | 2019-07-09 23:16:17 -0400 |
|---|---|---|
| committer | Mengchi Zhang <[email protected]> | 2019-07-09 23:16:17 -0400 |
| commit | 4d4d5938d715d2b79a617c32583184426b4a642d (patch) | |
| tree | e3b731726c5d87899a0406375826813617cace95 /src/cuda-sim/cuda-sim.cc | |
| parent | b3655bf28a7402db347f9d7f87049806b9315a05 (diff) | |
Move g_ptx_sim_mode
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'src/cuda-sim/cuda-sim.cc')
| -rw-r--r-- | src/cuda-sim/cuda-sim.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cuda-sim/cuda-sim.cc b/src/cuda-sim/cuda-sim.cc index b3e2965..7a7d205 100644 --- a/src/cuda-sim/cuda-sim.cc +++ b/src/cuda-sim/cuda-sim.cc @@ -2033,13 +2033,11 @@ void gpgpu_ptx_sim_memcpy_symbol(const char *hostVar, const void *src, size_t co fflush(stdout); } -int g_ptx_sim_mode; // if non-zero run functional simulation only (i.e., no notion of a clock cycle) - extern int ptx_debug; bool g_cuda_launch_blocking = false; -void read_sim_environment_variables() +void cuda_sim::read_sim_environment_variables() { ptx_debug = 0; g_debug_execution = 0; @@ -2185,7 +2183,7 @@ void cuda_sim::gpgpu_cuda_ptx_sim_main_func( kernel_info_t &kernel, bool openCL cta.execute(cp_count,temp); #if (CUDART_VERSION >= 5000) - launch_all_device_kernels(); + gpgpu_ctx->device_runtime->launch_all_device_kernels(); #endif } else |
