summaryrefslogtreecommitdiff
path: root/src/cuda-sim/ptx_sim.h
diff options
context:
space:
mode:
authorsspenst <[email protected]>2016-07-11 11:16:46 -0700
committersspenst <[email protected]>2016-07-11 11:16:46 -0700
commitadc311951d67b0685ebf2fab4ce6410f96f0039a (patch)
treee16dbeddf663cfc11bbefaa517101cd2cb5b48fe /src/cuda-sim/ptx_sim.h
parent6c1fb702e17b00fd7de72ac7dd4a31584d5978b9 (diff)
Reverted the previous commit to add a cleaner way of getting NUM_THREADS. Now, sst_impl doesn't functionally execute on the last indexed element of an array, but instead on the actual last thread that executes
Diffstat (limited to 'src/cuda-sim/ptx_sim.h')
-rw-r--r--src/cuda-sim/ptx_sim.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cuda-sim/ptx_sim.h b/src/cuda-sim/ptx_sim.h
index c66b68c..4e748e9 100644
--- a/src/cuda-sim/ptx_sim.h
+++ b/src/cuda-sim/ptx_sim.h
@@ -158,8 +158,12 @@ public:
void register_thread_exit( ptx_thread_info *thd );
void register_deleted_thread( ptx_thread_info *thd );
unsigned get_sm_idx() const;
+ unsigned get_bar_threads() const;
+ void inc_bar_threads();
+ void reset_bar_threads();
private:
+ unsigned m_bar_threads;
unsigned long long m_uid;
unsigned m_sm_idx;
std::set<ptx_thread_info*> m_threads_in_cta;