From db789973ec11440d4b4d02bc9ad1481ec9b1054f Mon Sep 17 00:00:00 2001 From: leonyu Date: Mon, 21 Oct 2013 21:08:33 -0800 Subject: warning fixes 2nd patch, including comments removal and strict aliasing fixes. [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 17183] --- src/gpuwattch/cacti/nuca.cc | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/gpuwattch/cacti/nuca.cc') 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