summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/power_stat.cc
diff options
context:
space:
mode:
authorTayler Hetherington <[email protected]>2013-04-07 22:57:26 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:50:45 -0700
commit6f6c192ff335a5ed41008b69e7eb34929d7db3dd (patch)
tree6e5f437274d2bebf89e728985a281470afaa22c5 /src/gpgpu-sim/power_stat.cc
parent2fd5f159b3729c021ac4fbf8aa54f91c2f3ec166 (diff)
Cleaning up interconnection network memory partition to core statistics. Now counting the number of flits arriving at the cores instead of the number of flits leaving each memory partition.
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15746]
Diffstat (limited to 'src/gpgpu-sim/power_stat.cc')
-rw-r--r--src/gpgpu-sim/power_stat.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpgpu-sim/power_stat.cc b/src/gpgpu-sim/power_stat.cc
index 12c9574..eb4cb31 100644
--- a/src/gpgpu-sim/power_stat.cc
+++ b/src/gpgpu-sim/power_stat.cc
@@ -95,7 +95,8 @@ void power_mem_stat_t::init(){
n_req[i] = (unsigned *)calloc(m_config->m_n_mem,sizeof(unsigned));
// 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_config->m_n_mem,sizeof(unsigned)); // Counted at memory partition
+ n_mem_to_simt[i] = (unsigned *)calloc(m_core_config->n_simt_clusters*m_core_config->n_simt_cores_per_cluster,sizeof(unsigned)); // Counted at SM
n_simt_to_mem[i] = (unsigned *)calloc(m_core_config->n_simt_clusters*m_core_config->n_simt_cores_per_cluster,sizeof(unsigned)); // Counted at SM
}
}