From 474e6d99c8efa9e3b8518eecb059546364370fd9 Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Tue, 5 Oct 2010 22:58:15 -0800 Subject: simulator "working" on ptxplus, simulated IPC "too low" by about a factor of up to 50% [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 7816] --- src/abstract_hardware_model.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/abstract_hardware_model.h') diff --git a/src/abstract_hardware_model.h b/src/abstract_hardware_model.h index 02d58c2..15a7296 100644 --- a/src/abstract_hardware_model.h +++ b/src/abstract_hardware_model.h @@ -315,6 +315,7 @@ public: fprintf(fp, "%c", ((warp_active_mask[i])?'1':'0') ); } bool active( unsigned thread ) const { return warp_active_mask.test(thread); } + unsigned active_count() const { return warp_active_mask.count(); } bool empty() const { return m_empty; } unsigned warp_id() const { -- cgit v1.3