From 363fe2cf6692b85729215345446455f9e2648786 Mon Sep 17 00:00:00 2001 From: Ahmad Alawneh Date: Thu, 17 Apr 2025 11:24:06 -0400 Subject: adding a function to check active status of a thread (#112) --- src/gpgpu-sim/shader.h | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.3