summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/gpu-sim.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/gpu-sim.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/gpu-sim.cc')
-rw-r--r--src/gpgpu-sim/gpu-sim.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gpgpu-sim/gpu-sim.cc b/src/gpgpu-sim/gpu-sim.cc
index 39216f9..a8ebe5d 100644
--- a/src/gpgpu-sim/gpu-sim.cc
+++ b/src/gpgpu-sim/gpu-sim.cc
@@ -919,17 +919,17 @@ void gpgpu_sim::gpu_print_stat()
// Interconnect power stat print
- unsigned total_simt_to_mem=0;
- unsigned total_mem_to_simt=0;
- unsigned temp_stm=0;
- unsigned temp_mts = 0;
+ long total_simt_to_mem=0;
+ long total_mem_to_simt=0;
+ long temp_stm=0;
+ long temp_mts = 0;
for(unsigned i=0; i<m_config.num_cluster(); i++){
m_cluster[i]->set_icnt_stats(temp_stm, temp_mts);
total_simt_to_mem += temp_stm;
total_mem_to_simt += temp_mts;
}
- printf("\nicnt_total_pkts_mem_to_simt=%u\n", total_mem_to_simt);
- printf("icnt_total_pkts_simt_to_mem=%u\n\n", total_simt_to_mem);
+ printf("\nicnt_total_pkts_mem_to_simt=%ld\n", total_mem_to_simt);
+ printf("icnt_total_pkts_simt_to_mem=%ld\n", total_simt_to_mem);
time_vector_print();
@@ -1161,7 +1161,7 @@ void gpgpu_sim::cycle()
if (m_cluster[i]->get_not_completed() || get_more_cta_left() ) {
m_cluster[i]->core_cycle();
*active_sms+=m_cluster[i]->get_n_active_sms();
- // Interconnect power stats: SIMT->MEM
+
m_cluster[i]->set_icnt_stats(m_power_stats->pwr_mem_stat->n_simt_to_mem[0][i], m_power_stats->pwr_mem_stat->n_mem_to_simt[0][i]);
}
}