From 9333cfbf261666ac2a3d40b712b6cbb3346d8c00 Mon Sep 17 00:00:00 2001 From: Ahmed El-Shafiey Date: Thu, 20 Dec 2012 20:40:54 -0800 Subject: fixing more bugs in interconnect stats, simt_to_mem related stats were wrongly allocated and not initialized [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 14856] --- src/gpgpu-sim/power_stat.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gpgpu-sim/power_stat.cc') diff --git a/src/gpgpu-sim/power_stat.cc b/src/gpgpu-sim/power_stat.cc index e1f4f8a..0332e73 100644 --- a/src/gpgpu-sim/power_stat.cc +++ b/src/gpgpu-sim/power_stat.cc @@ -96,7 +96,7 @@ void power_mem_stat_t::init(){ // Interconnect stats n_mem_to_simt[i] = (unsigned *)calloc(m_config->m_n_mem,sizeof(unsigned)); // Counted at memory partition - n_simt_to_mem[i] = (unsigned *)calloc(m_core_config->num_shader(),sizeof(unsigned)); // Counted at SM + n_simt_to_mem[i] = (unsigned *)calloc(m_core_config->n_simt_clusters,sizeof(unsigned)); // Counted at SM } } -- cgit v1.3