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.h | |
| parent | 2683b8bd7ba9950e0aa174915ef9ff64e0a20421 (diff) | |
Added shfl instruction
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 f926e6d..449511f 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 { @@ -425,6 +436,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; |
