summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAhmad Alawneh <[email protected]>2025-04-17 11:24:06 -0400
committerGitHub <[email protected]>2025-04-17 15:24:06 +0000
commit363fe2cf6692b85729215345446455f9e2648786 (patch)
treed5f725df70bf846d0c263a10bfbe5b0e598c717b /src
parentb7dc8bad9f41ce3bd143761a276d960e366a9392 (diff)
adding a function to check active status of a thread (#112)
Diffstat (limited to 'src')
-rw-r--r--src/gpgpu-sim/shader.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gpgpu-sim/shader.h b/src/gpgpu-sim/shader.h
index 0840d3f..bef1ae3 100644
--- a/src/gpgpu-sim/shader.h
+++ b/src/gpgpu-sim/shader.h
@@ -189,6 +189,7 @@ class shd_warp_t {
m_active_threads.reset(lane);
n_completed++;
}
+ bool test_completed(unsigned lane) {return m_active_threads.test(lane);}
void set_last_fetch(unsigned long long sim_cycle) {
m_last_fetch = sim_cycle;