From 07cf089e9d81e71c104ee81c63ee5d8be904d1b0 Mon Sep 17 00:00:00 2001 From: Wilson Fung Date: Thu, 7 Jun 2012 21:06:00 -0800 Subject: 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] --- src/gpgpu-sim/mem_latency_stat.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gpgpu-sim/mem_latency_stat.cc') 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; -- cgit v1.3