diff options
| author | sspenst <[email protected]> | 2016-08-24 15:24:19 -0700 |
|---|---|---|
| committer | sspenst <[email protected]> | 2016-08-24 15:24:19 -0700 |
| commit | 68336f112117bcef5b943650819a6764e9ebf4ce (patch) | |
| tree | ba85c9a8544d15a4055b991630d794e1cf668e42 /src/cuda-sim/ptx_sim.cc | |
| parent | 2683b8bd7ba9950e0aa174915ef9ff64e0a20421 (diff) | |
Added shfl instruction
Diffstat (limited to 'src/cuda-sim/ptx_sim.cc')
| -rw-r--r-- | src/cuda-sim/ptx_sim.cc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/cuda-sim/ptx_sim.cc b/src/cuda-sim/ptx_sim.cc index 09844ae..a3e43aa 100644 --- a/src/cuda-sim/ptx_sim.cc +++ b/src/cuda-sim/ptx_sim.cc @@ -128,6 +128,26 @@ unsigned ptx_cta_info::get_sm_idx() const return m_sm_idx; } +ptx_warp_info::ptx_warp_info() +{ + reset_done_threads(); +} + +unsigned ptx_warp_info::get_done_threads() const +{ + return m_done_threads; +} + +void ptx_warp_info::inc_done_threads() +{ + m_done_threads++; +} + +void ptx_warp_info::reset_done_threads() +{ + m_done_threads = 0; +} + unsigned g_ptx_thread_info_uid_next=1; unsigned g_ptx_thread_info_delete_count=0; @@ -153,6 +173,7 @@ ptx_thread_info::ptx_thread_info( kernel_info_t &kernel ) m_last_memory_space = undefined_space; m_branch_taken = 0; m_shared_mem = NULL; + m_warp_info = NULL; m_cta_info = NULL; m_local_mem = NULL; m_symbol_table = NULL; |
