summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTayler Hetherington <[email protected]>2013-03-22 08:12:10 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:50:06 -0700
commit1a79a6c54cbd2a7b75ebc1ab7fd6d449f18197f8 (patch)
tree33fd3c308b0a8a367bbff9a1e0de53a194524079 /src
parent233aa6826befc31aa6df6851c3201f354a09d6ed (diff)
Fixing bug in reseting code - looping over # of power values, not number of performance counters to reset performance counters
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15577]
Diffstat (limited to 'src')
-rw-r--r--src/gpuwattch/gpgpu_sim_wrapper.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpuwattch/gpgpu_sim_wrapper.cc b/src/gpuwattch/gpgpu_sim_wrapper.cc
index df90de5..115c2b7 100644
--- a/src/gpuwattch/gpgpu_sim_wrapper.cc
+++ b/src/gpuwattch/gpgpu_sim_wrapper.cc
@@ -243,15 +243,15 @@ void gpgpu_sim_wrapper::reset_counters(bool do_print){
pwr_cmp_min[i]= 0;
}
- for(unsigned i=0; i<num_pwr_cmps; ++i){
+ for(unsigned i=0; i<num_per_counts; ++i){
perf_count_avg[i]= 0;
}
- for(unsigned i=0; i<num_pwr_cmps; ++i){
+ for(unsigned i=0; i<num_per_counts; ++i){
perf_count_min[i]= 0;
}
- for(unsigned i=0; i<num_pwr_cmps; ++i){
+ for(unsigned i=0; i<num_per_counts; ++i){
perf_count_max[i]= 0;
}