diff options
| author | leonyu <a@b> | 2013-10-21 21:08:33 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:50:59 -0700 |
| commit | db789973ec11440d4b4d02bc9ad1481ec9b1054f (patch) | |
| tree | e1693c022567d26069a098f08ea55156b0acf40f /src/gpuwattch/cacti/nuca.cc | |
| parent | da74edd77d3effb3da82090c05ebd3a1f3965f1f (diff) | |
warning fixes 2nd patch, including comments removal and strict aliasing fixes.
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 17183]
Diffstat (limited to 'src/gpuwattch/cacti/nuca.cc')
| -rw-r--r-- | src/gpuwattch/cacti/nuca.cc | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/gpuwattch/cacti/nuca.cc b/src/gpuwattch/cacti/nuca.cc index d963090..9518791 100644 --- a/src/gpuwattch/cacti/nuca.cc +++ b/src/gpuwattch/cacti/nuca.cc @@ -142,7 +142,7 @@ Nuca::sim_nuca() /* temp variables */ int it, ro, wr; int num_cyc; - unsigned int i, j, k; + unsigned int i, j; unsigned int r, c; int l2_c; int bank_count = 0; @@ -166,10 +166,9 @@ Nuca::sim_nuca() double avg_lat, avg_hop, avg_hhop, avg_vhop, avg_dyn_power, avg_leakage_power; - double opt_acclat = INF, opt_avg_lat = INF, opt_tot_lat = INF; + double opt_acclat = INF; int opt_rows = 0; int opt_columns = 0; - double opt_totno_hops = 0; double opt_avg_hop = 0; double opt_dyn_power = 0, opt_leakage_power = 0; min_values_t minval; @@ -285,7 +284,7 @@ Nuca::sim_nuca() * count value. */ totno_hops = totno_hhops = totno_vhops = tot_lat = 0; - k = 1; + for (i=0; i<r; i++) { for (j=0; j<c; j++) { /* @@ -331,9 +330,6 @@ Nuca::sim_nuca() if (curr_acclat < opt_acclat) { opt_acclat = curr_acclat; - opt_tot_lat = tot_lat; - opt_avg_lat = avg_lat; - opt_totno_hops = totno_hops; opt_avg_hop = avg_hop; opt_rows = r; opt_columns = c; |
