diff options
| author | Mengchi Zhang <[email protected]> | 2019-07-11 15:20:05 -0400 |
|---|---|---|
| committer | Mengchi Zhang <[email protected]> | 2019-07-11 15:20:05 -0400 |
| commit | 93e1131cfa3ae9e98dcc91e3c83c9b2c228a2633 (patch) | |
| tree | 0f03bd3dba5a9309dfd5bcb24471e50bfb842d08 /src | |
| parent | b1385157251803aa45eaff154637218c9f6b15b1 (diff) | |
Move g_ptx_thread_info_delete_count
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'src')
| -rw-r--r-- | src/cuda-sim/cuda-sim.h | 2 | ||||
| -rw-r--r-- | src/cuda-sim/ptx_sim.cc | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/cuda-sim/cuda-sim.h b/src/cuda-sim/cuda-sim.h index b3b6b73..bfd6d2d 100644 --- a/src/cuda-sim/cuda-sim.h +++ b/src/cuda-sim/cuda-sim.h @@ -134,6 +134,7 @@ class cuda_sim { g_debug_thread_uid = 0; g_override_embedded_ptx = false; ptx_tex_regs = NULL; + g_ptx_thread_info_delete_count=0; gpgpu_ctx = ctx; } //global variables @@ -171,6 +172,7 @@ class cuda_sim { bool g_override_embedded_ptx; std::set<unsigned long long> g_ptx_cta_info_sm_idx_used; ptx_reg_t* ptx_tex_regs; + unsigned g_ptx_thread_info_delete_count; // backward pointer class gpgpu_context* gpgpu_ctx; //global functions diff --git a/src/cuda-sim/ptx_sim.cc b/src/cuda-sim/ptx_sim.cc index cd402d5..9e84cbd 100644 --- a/src/cuda-sim/ptx_sim.cc +++ b/src/cuda-sim/ptx_sim.cc @@ -168,11 +168,10 @@ void ptx_warp_info::reset_done_threads() } unsigned g_ptx_thread_info_uid_next=1; -unsigned g_ptx_thread_info_delete_count=0; ptx_thread_info::~ptx_thread_info() { - g_ptx_thread_info_delete_count++; + m_gpu->gpgpu_ctx->func_sim->g_ptx_thread_info_delete_count++; } ptx_thread_info::ptx_thread_info( kernel_info_t &kernel ) |
