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.h | |
| parent | bab2a234abfadc50cb14dadb01c10595ce6ad1ef (diff) | |
| parent | 0afe825c212560c3b473366d005a50c2568cad1a (diff) | |
Merge pull request #30 from sspenst/dev
shfl instruction implemented
Diffstat (limited to 'src/cuda-sim/ptx_sim.h')
| -rw-r--r-- | src/cuda-sim/ptx_sim.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cuda-sim/ptx_sim.h b/src/cuda-sim/ptx_sim.h index ea171c5..e6eb02e 100644 --- a/src/cuda-sim/ptx_sim.h +++ b/src/cuda-sim/ptx_sim.h @@ -167,6 +167,17 @@ private: std::set<ptx_thread_info*> m_dangling_pointers; }; +class ptx_warp_info { +public: + ptx_warp_info(); + unsigned get_done_threads() const; + void inc_done_threads(); + void reset_done_threads(); + +private: + unsigned m_done_threads; +}; + class symbol; struct stack_entry { @@ -428,6 +439,7 @@ public: dram_callback_t m_last_dram_callback; memory_space *m_shared_mem; memory_space *m_local_mem; + ptx_warp_info *m_warp_info; ptx_cta_info *m_cta_info; ptx_reg_t m_last_set_operand_value; |
