summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/power_stat.cc
diff options
context:
space:
mode:
authorTayler Hetherington <[email protected]>2013-06-09 21:56:23 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:50:47 -0700
commit5eebb5d3938302ffff1ab80e09bf6065e2fa1c92 (patch)
tree96d0c3e7a7c0967d6f181c127376948c17be3e98 /src/gpgpu-sim/power_stat.cc
parentad5ea1e3b77bfa5b36d529de24e9b5c5c1113cf3 (diff)
Fixing interconnect stats bug
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 16428]
Diffstat (limited to 'src/gpgpu-sim/power_stat.cc')
-rw-r--r--src/gpgpu-sim/power_stat.cc4
1 files changed, 2 insertions, 2 deletions
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
}
}