diff options
| author | Tayler Hetherington <[email protected]> | 2013-06-09 21:56:23 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:50:47 -0700 |
| commit | 5eebb5d3938302ffff1ab80e09bf6065e2fa1c92 (patch) | |
| tree | 96d0c3e7a7c0967d6f181c127376948c17be3e98 /src/gpgpu-sim/power_stat.h | |
| parent | ad5ea1e3b77bfa5b36d529de24e9b5c5c1113cf3 (diff) | |
Fixing interconnect stats bug
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 16428]
Diffstat (limited to 'src/gpgpu-sim/power_stat.h')
| -rw-r--r-- | src/gpgpu-sim/power_stat.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gpgpu-sim/power_stat.h b/src/gpgpu-sim/power_stat.h index 28909f0..75bdd28 100644 --- a/src/gpgpu-sim/power_stat.h +++ b/src/gpgpu-sim/power_stat.h @@ -112,8 +112,8 @@ struct mem_power_stats_pod{ unsigned *n_req[2]; // Interconnect stats - unsigned *n_simt_to_mem[2]; - unsigned *n_mem_to_simt[2]; + long *n_simt_to_mem[2]; + long *n_mem_to_simt[2]; }; @@ -585,16 +585,16 @@ public: return total; } - unsigned get_icnt_simt_to_mem(){ - unsigned total=0; + long get_icnt_simt_to_mem(){ + long total=0; 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; } - unsigned get_icnt_mem_to_simt(){ - unsigned total=0; + long get_icnt_mem_to_simt(){ + long total=0; 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]); } |
