From b4dcac15e64b9007930824409ca3ed901da37ef3 Mon Sep 17 00:00:00 2001 From: Tim Rogers Date: Thu, 27 Oct 2011 16:39:10 -0800 Subject: Fixing the atomics I broke with the insn count fix [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 10754] --- src/abstract_hardware_model.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/abstract_hardware_model.h') diff --git a/src/abstract_hardware_model.h b/src/abstract_hardware_model.h index d0822d0..a314300 100644 --- a/src/abstract_hardware_model.h +++ b/src/abstract_hardware_model.h @@ -654,12 +654,15 @@ public: } // modifiers - void do_atomic() + void do_atomic() { + do_atomic( m_warp_active_mask ); + } + void do_atomic( const active_mask_t& access_mask ) { assert( m_isatomic && !m_empty ); for( unsigned i=0; i < m_config->warp_size; i++ ) { - if( m_warp_active_mask.test(i) ) + if( access_mask.test(i) ) { dram_callback_t &cb = m_per_scalar_thread[i].callback; if( cb.thread ) -- cgit v1.3