From 5eebb5d3938302ffff1ab80e09bf6065e2fa1c92 Mon Sep 17 00:00:00 2001 From: Tayler Hetherington Date: Sun, 9 Jun 2013 21:56:23 -0800 Subject: Fixing interconnect stats bug [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 16428] --- src/gpgpu-sim/power_stat.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (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 034f7bb..74c8aef 100644 --- a/src/gpgpu-sim/power_stat.cc +++ b/src/gpgpu-sim/power_stat.cc @@ -96,8 +96,8 @@ 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_mem_to_simt[i] = (unsigned *)calloc(m_core_config->n_simt_clusters,sizeof(unsigned)); // Counted at SM - n_simt_to_mem[i] = (unsigned *)calloc(m_core_config->n_simt_clusters,sizeof(unsigned)); // Counted at SM + n_mem_to_simt[i] = (long *)calloc(m_core_config->n_simt_clusters,sizeof(long)); // Counted at SM + n_simt_to_mem[i] = (long *)calloc(m_core_config->n_simt_clusters,sizeof(long)); // Counted at SM } } -- cgit v1.3