summaryrefslogtreecommitdiff
path: root/src/abstract_hardware_model.h
diff options
context:
space:
mode:
authorTor Aamodt <[email protected]>2010-10-05 22:58:15 -0800
committerTor Aamodt <[email protected]>2010-10-05 22:58:15 -0800
commit474e6d99c8efa9e3b8518eecb059546364370fd9 (patch)
tree4cd74a453048ea8cdcca10169b3fe18cd13ed1a9 /src/abstract_hardware_model.h
parent6cd75fefce592e193ddb2cdc90842664682ff281 (diff)
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]
Diffstat (limited to 'src/abstract_hardware_model.h')
-rw-r--r--src/abstract_hardware_model.h1
1 files changed, 1 insertions, 0 deletions
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
{