diff options
| author | gpgpu-sim <[email protected]> | 2016-09-06 06:43:14 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2016-09-06 06:43:14 -0700 |
| commit | 3e9c0b4308ad32f381dc90f7763df46fa9ba721c (patch) | |
| tree | d77c8320f986a1c64d2018a7e50d09f8e4dd6a40 /src/cuda-sim/ptx_sim.cc | |
| parent | bab2a234abfadc50cb14dadb01c10595ce6ad1ef (diff) | |
| parent | 0afe825c212560c3b473366d005a50c2568cad1a (diff) | |
Merge pull request #30 from sspenst/dev
shfl instruction implemented
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; |
