summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/mem_latency_stat.cc
diff options
context:
space:
mode:
authorWilson Fung <[email protected]>2012-06-07 21:06:00 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:47:32 -0700
commit07cf089e9d81e71c104ee81c63ee5d8be904d1b0 (patch)
treeb993aed37dbdccd99d9aff0b34fd4243d59a58d6 /src/gpgpu-sim/mem_latency_stat.cc
parent7f9189c1970d1a1d1d007f55d54923b48cccc545 (diff)
Fix for bug 168 (internal). The overall average memory latency should now be reporting the actual overall, instead of the average of just the final sampling window for AerialVision.
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13045]
Diffstat (limited to 'src/gpgpu-sim/mem_latency_stat.cc')
-rw-r--r--src/gpgpu-sim/mem_latency_stat.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpgpu-sim/mem_latency_stat.cc b/src/gpgpu-sim/mem_latency_stat.cc
index 68cd850..284ad74 100644
--- a/src/gpgpu-sim/mem_latency_stat.cc
+++ b/src/gpgpu-sim/mem_latency_stat.cc
@@ -202,8 +202,8 @@ void memory_stats_t::memlatstat_lat_pw()
{
if (mf_num_lat_pw && m_memory_config->gpgpu_memlatency_stat) {
assert(mf_tot_lat_pw);
- mf_total_lat = mf_tot_lat_pw;
- num_mfs = mf_num_lat_pw;
+ mf_total_lat += mf_tot_lat_pw;
+ num_mfs += mf_num_lat_pw;
mf_lat_pw_table[LOGB2(mf_tot_lat_pw/mf_num_lat_pw)]++;
mf_tot_lat_pw = 0;
mf_num_lat_pw = 0;