diff options
| author | Wilson Fung <[email protected]> | 2012-02-27 05:05:06 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:19:04 -0700 |
| commit | 4bbe95f0d5baea44b9496bc495002bb9b94e7838 (patch) | |
| tree | 40ddfdf2b6f3208bb94822563dae1f742a54dc9e /src/gpgpu-sim/gpu-cache.cc | |
| parent | a45df47fccde23b81599c524ef942e8a4f138337 (diff) | |
Fixed the how the Pending Hits are displayed in simulation logs. See Bug 136 for details.
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 11530]
Diffstat (limited to 'src/gpgpu-sim/gpu-cache.cc')
| -rw-r--r-- | src/gpgpu-sim/gpu-cache.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gpgpu-sim/gpu-cache.cc b/src/gpgpu-sim/gpu-cache.cc index 63b251b..2692690 100644 --- a/src/gpgpu-sim/gpu-cache.cc +++ b/src/gpgpu-sim/gpu-cache.cc @@ -172,14 +172,12 @@ void tag_array::flush() m_lines[i].m_status = INVALID; } -float tag_array::windowed_miss_rate( bool minus_pending_hit ) const +float tag_array::windowed_miss_rate( ) const { unsigned n_access = m_access - m_prev_snapshot_access; unsigned n_miss = m_miss - m_prev_snapshot_miss; - unsigned n_pending_hit = m_pending_hit - m_prev_snapshot_pending_hit; + // unsigned n_pending_hit = m_pending_hit - m_prev_snapshot_pending_hit; - if (minus_pending_hit) - n_miss -= n_pending_hit; float missrate = 0.0f; if (n_access != 0) missrate = (float) n_miss / n_access; @@ -196,9 +194,9 @@ void tag_array::new_window() void tag_array::print( FILE *stream, unsigned &total_access, unsigned &total_misses ) const { m_config.print(stream); - fprintf( stream, "\t\tAccess = %d, Miss = %d (%.3g), -MgHts = %d (%.3g)\n", + fprintf( stream, "\t\tAccess = %d, Miss = %d (%.3g), PendingHit = %d (%.3g)\n", m_access, m_miss, (float) m_miss / m_access, - m_miss - m_pending_hit, (float) (m_miss - m_pending_hit) / m_access); + m_pending_hit, (float) m_pending_hit / m_access); total_misses+=m_miss; total_access+=m_access; } |
