From 0921d949dbb6233b8482b1fee90cfcc4ab2d0764 Mon Sep 17 00:00:00 2001 From: Tim Rogers Date: Thu, 27 Oct 2011 17:12:10 -0800 Subject: Actually fixing the atomic bug [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 10756] --- src/abstract_hardware_model.h | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) (limited to 'src/abstract_hardware_model.h') diff --git a/src/abstract_hardware_model.h b/src/abstract_hardware_model.h index a314300..4942110 100644 --- a/src/abstract_hardware_model.h +++ b/src/abstract_hardware_model.h @@ -654,23 +654,8 @@ public: } // modifiers - 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( access_mask.test(i) ) - { - dram_callback_t &cb = m_per_scalar_thread[i].callback; - if( cb.thread ) - cb.function(cb.instruction, cb.thread); - } - } - - } + void do_atomic(); + void do_atomic( const active_mask_t& access_mask ); void clear() { m_empty=true; -- cgit v1.3