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/shader.cc | |
| 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/shader.cc')
| -rw-r--r-- | src/gpgpu-sim/shader.cc | 6 |
1 files changed, 5 insertions, 1 deletions
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) |
