diff options
| author | Ahmed El-Shafiey <[email protected]> | 2013-04-11 01:10:40 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:50:45 -0700 |
| commit | 3164bfc1910cf17e7dd4033cd07ac264f656336f (patch) | |
| tree | f3165b4bfe45700fbca6b99de46e610aaa47480b /src/gpgpu-sim/power_stat.h | |
| parent | a0bd12d85d2ed4014c191d15d0ebad02803abc6d (diff) | |
fixing a bug in the interconnect stats was introduced in CL15746
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15781]
Diffstat (limited to 'src/gpgpu-sim/power_stat.h')
| -rw-r--r-- | src/gpgpu-sim/power_stat.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpgpu-sim/power_stat.h b/src/gpgpu-sim/power_stat.h index 299bf43..28909f0 100644 --- a/src/gpgpu-sim/power_stat.h +++ b/src/gpgpu-sim/power_stat.h @@ -587,7 +587,7 @@ public: unsigned get_icnt_simt_to_mem(){ unsigned total=0; - for(unsigned i=0; i<m_config->num_shader(); ++i){ + for(unsigned i=0; i<m_config->n_simt_clusters; ++i){ total += (pwr_mem_stat->n_simt_to_mem[0][i] - pwr_mem_stat->n_simt_to_mem[1][i]); } return total; @@ -595,7 +595,7 @@ public: unsigned get_icnt_mem_to_simt(){ unsigned total=0; - for(unsigned i=0; i<m_mem_config->m_n_mem; ++i){ + for(unsigned i=0; i<m_config->n_simt_clusters; ++i){ total += (pwr_mem_stat->n_mem_to_simt[0][i] - pwr_mem_stat->n_mem_to_simt[1][i]); } return total; |
