diff options
| author | Mahmoud <[email protected]> | 2019-11-20 19:51:20 -0500 |
|---|---|---|
| committer | Mahmoud <[email protected]> | 2019-11-20 19:51:20 -0500 |
| commit | 689316eff10035a1171e6b4917ce0616ecb3e938 (patch) | |
| tree | 3430b73ff0d0abe04e1632b1eb6e9221a8dfbe01 /src/gpgpu-sim/shader.cc | |
| parent | 4702017e7597fc31cb4f2337aa5d9e8ba8287418 (diff) | |
fixing atomic bug in trace-driven mode
Diffstat (limited to 'src/gpgpu-sim/shader.cc')
| -rw-r--r-- | src/gpgpu-sim/shader.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpgpu-sim/shader.cc b/src/gpgpu-sim/shader.cc index 0ea819d..de6d975 100644 --- a/src/gpgpu-sim/shader.cc +++ b/src/gpgpu-sim/shader.cc @@ -2342,8 +2342,9 @@ void ldst_unit::writeback() case 3: // global/local if( m_next_global ) { m_next_wb = m_next_global->get_inst(); - if( m_next_global->isatomic() ) + if( m_next_global->isatomic() ) { 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; serviced_client = next_client; |
