summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/shader.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpgpu-sim/shader.h')
-rw-r--r--src/gpgpu-sim/shader.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpgpu-sim/shader.h b/src/gpgpu-sim/shader.h
index ce0c8c4..f25ba0e 100644
--- a/src/gpgpu-sim/shader.h
+++ b/src/gpgpu-sim/shader.h
@@ -196,6 +196,9 @@ class shd_warp_t {
n_completed++;
}
bool test_active(unsigned lane) { return m_active_threads.test(lane); }
+ const std::bitset<MAX_WARP_SIZE> &get_active_threads() const {
+ return m_active_threads;
+ }
void set_last_fetch(unsigned long long sim_cycle) {
m_last_fetch = sim_cycle;