diff options
| author | Ahmed El-Shafiey <[email protected]> | 2012-12-20 20:40:54 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:49:23 -0700 |
| commit | 9333cfbf261666ac2a3d40b712b6cbb3346d8c00 (patch) | |
| tree | b6b14f3636fb4f01171965a6fbff2cf215ff78db /src/gpgpu-sim/shader.cc | |
| parent | fecd769d1e7813b6cf962218208810049e2ad777 (diff) | |
fixing more bugs in interconnect stats, simt_to_mem related stats were wrongly allocated and not initialized
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 14856]
Diffstat (limited to 'src/gpgpu-sim/shader.cc')
| -rw-r--r-- | src/gpgpu-sim/shader.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gpgpu-sim/shader.cc b/src/gpgpu-sim/shader.cc index 64088af..0aa8532 100644 --- a/src/gpgpu-sim/shader.cc +++ b/src/gpgpu-sim/shader.cc @@ -1339,6 +1339,7 @@ ldst_unit::ldst_unit( mem_fetch_interface *icnt, m_mem_rc = NO_RC_FAIL; m_num_writeback_clients=5; // = shared memory, global/local (uncached), L1D, L1T, L1C m_writeback_arb = 0; + n_simt_to_mem = 0; m_next_global=NULL; m_last_inst_gpu_sim_cycle=0; m_last_inst_gpu_tot_sim_cycle=0; @@ -2333,8 +2334,9 @@ void shader_core_ctx::get_cache_stats(unsigned &read_accesses, unsigned &write_a void shader_core_ctx::set_icnt_power_stats(unsigned &n_simt_to_mem) const{ unsigned l1i=0; - - m_L1I->set_icnt_power_stats(l1i); + if( m_L1I ){ + m_L1I->set_icnt_power_stats(l1i); + } m_ldst_unit->set_icnt_power_stats(n_simt_to_mem); n_simt_to_mem+=l1i; // l1i + l1d + l1c + l1t + any non-cached access |
