summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/power_stat.cc
diff options
context:
space:
mode:
authorAhmed El-Shafiey <[email protected]>2012-12-20 20:40:54 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:49:23 -0700
commit9333cfbf261666ac2a3d40b712b6cbb3346d8c00 (patch)
treeb6b14f3636fb4f01171965a6fbff2cf215ff78db /src/gpgpu-sim/power_stat.cc
parentfecd769d1e7813b6cf962218208810049e2ad777 (diff)
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]
Diffstat (limited to 'src/gpgpu-sim/power_stat.cc')
-rw-r--r--src/gpgpu-sim/power_stat.cc2
1 files changed, 1 insertions, 1 deletions
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
}
}