From 3164bfc1910cf17e7dd4033cd07ac264f656336f Mon Sep 17 00:00:00 2001 From: Ahmed El-Shafiey Date: Thu, 11 Apr 2013 01:10:40 -0800 Subject: fixing a bug in the interconnect stats was introduced in CL15746 [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15781] --- src/gpgpu-sim/gpu-sim.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/gpgpu-sim/gpu-sim.cc') diff --git a/src/gpgpu-sim/gpu-sim.cc b/src/gpgpu-sim/gpu-sim.cc index 0abe14a..c1f58bf 100644 --- a/src/gpgpu-sim/gpu-sim.cc +++ b/src/gpgpu-sim/gpu-sim.cc @@ -1065,10 +1065,12 @@ void gpgpu_sim::cycle() if (m_cluster[i]->get_not_completed() || get_more_cta_left() ) { m_cluster[i]->core_cycle(); *active_sms+=m_cluster[i]->get_n_active_sms(); - + unsigned temp=0; + unsigned temp2 = 0; + m_cluster[i]->set_icnt_stats(temp, temp2); // Interconnect power stats: SIMT->MEM - m_cluster[i]->set_icnt_stats(m_power_stats->pwr_mem_stat->n_simt_to_mem[0][i], - m_power_stats->pwr_mem_stat->n_mem_to_simt[0][i]); + m_power_stats->pwr_mem_stat->n_simt_to_mem[0][i]=temp; + m_power_stats->pwr_mem_stat->n_mem_to_simt[0][i]=temp2; } } float temp=0; -- cgit v1.3