From 4955d4b0f265368d62bda62e603c5e3eeaf486ed Mon Sep 17 00:00:00 2001 From: Tayler Hetherington Date: Sun, 17 Mar 2013 18:58:56 -0800 Subject: Adding other power stats to reset function [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15522] --- CHANGES | 2 +- src/gpgpu-sim/power_interface.cc | 2 +- src/gpuwattch/gpgpu_sim_wrapper.cc | 23 ++++++++++++++++++++++- src/gpuwattch/gpgpu_sim_wrapper.h | 2 +- 4 files changed, 25 insertions(+), 4 deletions(-) diff --git a/CHANGES b/CHANGES index 85b1f7a..700fb1d 100644 --- a/CHANGES +++ b/CHANGES @@ -65,7 +65,7 @@ Version 3.2.0+edits (development branch) versus 3.2.0 operation was broken - Fixed a bug in setup_enironment that trashed your LD_LIBRARY_PATH if GPGPUSIM_ROOT was not the first entry in the list;. - - Fixed a GPUWattch bug where the performance counters were not being correctly + - Fixed a GPUWattch bug where the performance counters were not being correctly reset when a kernel completes. Version 3.2.0 versus 3.1.2 diff --git a/src/gpgpu-sim/power_interface.cc b/src/gpgpu-sim/power_interface.cc index 4ff6cf2..0c67039 100644 --- a/src/gpgpu-sim/power_interface.cc +++ b/src/gpgpu-sim/power_interface.cc @@ -124,5 +124,5 @@ void mcpat_cycle(const gpgpu_sim_config &config, const struct shader_core_config } void mcpat_reset_perf_count(class gpgpu_sim_wrapper *wrapper, bool do_print){ - wrapper->reset_perf_counters(do_print); + wrapper->reset_counters(do_print); } diff --git a/src/gpuwattch/gpgpu_sim_wrapper.cc b/src/gpuwattch/gpgpu_sim_wrapper.cc index bfcf4a1..df90de5 100644 --- a/src/gpuwattch/gpgpu_sim_wrapper.cc +++ b/src/gpuwattch/gpgpu_sim_wrapper.cc @@ -224,7 +224,7 @@ void gpgpu_sim_wrapper::init_mcpat(char* xmlfile, char* powerfilename, char* pow } -void gpgpu_sim_wrapper::reset_perf_counters(bool do_print){ +void gpgpu_sim_wrapper::reset_counters(bool do_print){ if(do_print) print_trace_files(); @@ -234,6 +234,27 @@ void gpgpu_sim_wrapper::reset_perf_counters(bool do_print){ for(unsigned i=0; i