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/gpgpu-sim/shader.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gpgpu-sim/shader.cc') diff --git a/src/gpgpu-sim/shader.cc b/src/gpgpu-sim/shader.cc index 50ad5ea..4ce7536 100644 --- a/src/gpgpu-sim/shader.cc +++ b/src/gpgpu-sim/shader.cc @@ -1132,7 +1132,7 @@ void ldst_unit::writeback() if( m_next_global ) { m_next_wb = m_next_global->get_inst(); if( m_next_global->isatomic() ) - m_core->decrement_atomic_count(m_next_global->get_wid(),m_next_wb.active_count()); + m_core->decrement_atomic_count(m_next_global->get_wid(),m_next_global->get_access_warp_mask().count()); delete m_next_global; m_next_global = NULL; } -- cgit v1.3