From 3d4d274eb3a6a23a5924b557d010590e219c5256 Mon Sep 17 00:00:00 2001 From: Davit Grigoryan Date: Tue, 28 Apr 2026 09:50:44 +0000 Subject: fix atomic counters; add more dbg prints --- src/gpgpu-sim/gpu-sim.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gpgpu-sim/gpu-sim.h') diff --git a/src/gpgpu-sim/gpu-sim.h b/src/gpgpu-sim/gpu-sim.h index 98e52f4..5da92a8 100644 --- a/src/gpgpu-sim/gpu-sim.h +++ b/src/gpgpu-sim/gpu-sim.h @@ -601,6 +601,11 @@ class gpgpu_sim : public gpgpu_t { void print_stats(unsigned long long streamID); void update_stats(); void deadlock_check(); + // MEMCO_DBG_DEADLOCK diagnostic — invoked from signal handler to dump + // per-warp state for all clusters with un-completed threads. Public so + // the static signal-handler thunk in gpu-sim.cc can call it through + // the saved gpgpu_sim* pointer. + void dbg_dump_all_warps(); void inc_completed_cta() { gpu_completed_cta++; } void get_pdom_stack_top_info(unsigned sid, unsigned tid, unsigned *pc, unsigned *rpc); -- cgit v1.3