diff options
| author | Tayler Hetherington <[email protected]> | 2013-04-11 10:23:34 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:50:46 -0700 |
| commit | 60395146cd0abe740f98d8e38c50691af94827ed (patch) | |
| tree | 207a31ac472274e7206bcab3aa47d4bc2b6c26b9 /src/gpgpu-sim | |
| parent | 918b3ef50790f0ae7c8c079754f7332933572d5b (diff) | |
Updating ICNT stat collection
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15788]
Diffstat (limited to 'src/gpgpu-sim')
| -rw-r--r-- | src/gpgpu-sim/gpu-sim.cc | 21 | ||||
| -rw-r--r-- | src/gpgpu-sim/shader.cc | 6 |
2 files changed, 13 insertions, 14 deletions
diff --git a/src/gpgpu-sim/gpu-sim.cc b/src/gpgpu-sim/gpu-sim.cc index 5dba54b..4cd9ea0 100644 --- a/src/gpgpu-sim/gpu-sim.cc +++ b/src/gpgpu-sim/gpu-sim.cc @@ -823,15 +823,14 @@ void gpgpu_sim::gpu_print_stat() // Interconnect power stat print - unsigned total_mem_to_simt=0; unsigned total_simt_to_mem=0; - + unsigned total_mem_to_simt=0; + unsigned temp_stm=0; + unsigned temp_mts = 0; for(unsigned i=0; i<m_config.num_cluster(); i++){ - unsigned temp=0; - unsigned temp2 = 0; - m_cluster[i]->set_icnt_stats(temp, temp2); - total_simt_to_mem += temp; - total_mem_to_simt += temp2; + 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); @@ -1066,12 +1065,8 @@ 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(); - unsigned temp=0; - unsigned temp2 = 0; - m_cluster[i]->set_icnt_stats(temp, temp2); - // Interconnect power stats: SIMT->MEM - m_power_stats->pwr_mem_stat->n_simt_to_mem[0][i]=temp; - m_power_stats->pwr_mem_stat->n_mem_to_simt[0][i]=temp2; + // 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]); } } float temp=0; diff --git a/src/gpgpu-sim/shader.cc b/src/gpgpu-sim/shader.cc index ba44c01..27fa2ca 100644 --- a/src/gpgpu-sim/shader.cc +++ b/src/gpgpu-sim/shader.cc @@ -3146,9 +3146,13 @@ void simt_core_cluster::get_cache_stats(unsigned &read_accesses, unsigned &write } void simt_core_cluster::set_icnt_stats(unsigned &n_simt_to_mem, unsigned &n_mem_to_simt) const { + unsigned simt_to_mem=0; + unsigned mem_to_simt=0; for ( unsigned i = 0; i < m_config->n_simt_cores_per_cluster; ++i ) { - m_core[i]->set_icnt_power_stats(n_simt_to_mem, n_mem_to_simt); + m_core[i]->set_icnt_power_stats(simt_to_mem, mem_to_simt); } + n_simt_to_mem = simt_to_mem; + n_mem_to_simt = mem_to_simt; } void shader_core_ctx::checkExecutionStatusAndUpdate(warp_inst_t &inst, unsigned t, unsigned tid) |
