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_interface.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/gpgpu-sim/power_interface.cc') diff --git a/src/gpgpu-sim/power_interface.cc b/src/gpgpu-sim/power_interface.cc index 0c67039..7d87222 100644 --- a/src/gpgpu-sim/power_interface.cc +++ b/src/gpgpu-sim/power_interface.cc @@ -99,11 +99,8 @@ void mcpat_cycle(const gpgpu_sim_config &config, const struct shader_core_config (power_stats->get_sfu_active_lanes())/stat_sample_freq); - //NoC stats (32/4)--> Number of 32 bit words in 32B block - //unsigned l2cache_tot_access = power_stats->get_l2_read_accesses() + power_stats->get_l2_write_accesses(); - unsigned n_icnt_simt_to_mem = power_stats->get_icnt_simt_to_mem(); // # flits from SIMT clusters to memory partitions - unsigned n_icnt_mem_to_simt = power_stats->get_icnt_mem_to_simt(); // # flits from memory partitions to SIMT clusters - //wrapper->set_NoC_power((double)(n_icnt_mem_to_simt + n_icnt_simt_to_mem)); // Number of flits traversing the interconnect + double n_icnt_simt_to_mem = (double)power_stats->get_icnt_simt_to_mem(); // # flits from SIMT clusters to memory partitions + double n_icnt_mem_to_simt = (double)power_stats->get_icnt_mem_to_simt(); // # flits from memory partitions to SIMT clusters wrapper->set_NoC_power(n_icnt_mem_to_simt, n_icnt_simt_to_mem); // Number of flits traversing the interconnect wrapper->compute(); -- cgit v1.3