summaryrefslogtreecommitdiff
path: root/src/gpuwattch
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpuwattch')
-rw-r--r--src/gpuwattch/gpgpu_sim_wrapper.cc3
-rw-r--r--src/gpuwattch/gpgpu_sim_wrapper.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/gpuwattch/gpgpu_sim_wrapper.cc b/src/gpuwattch/gpgpu_sim_wrapper.cc
index 22d0659..3bee7b0 100644
--- a/src/gpuwattch/gpgpu_sim_wrapper.cc
+++ b/src/gpuwattch/gpgpu_sim_wrapper.cc
@@ -586,10 +586,11 @@ void gpgpu_sim_wrapper::compute()
{
proc->compute();
}
-void gpgpu_sim_wrapper::print_power_kernel_stats(double gpu_sim_cycle, double gpu_tot_sim_cycle, double init_value)
+void gpgpu_sim_wrapper::print_power_kernel_stats(double gpu_sim_cycle, double gpu_tot_sim_cycle, double init_value, const std::string & kernel_info_string)
{
detect_print_steady_state(1,init_value);
if(g_power_simulation_enabled){
+ powerfile<<kernel_info_string<<std::endl;
powerfile<<"Kernel Average Power Data:"<<std::endl;
powerfile<<"gpu_avg_power = "<< gpu_avg_power/ count<<std::endl;
diff --git a/src/gpuwattch/gpgpu_sim_wrapper.h b/src/gpuwattch/gpgpu_sim_wrapper.h
index 97cffd3..0d9d546 100644
--- a/src/gpuwattch/gpgpu_sim_wrapper.h
+++ b/src/gpuwattch/gpgpu_sim_wrapper.h
@@ -61,7 +61,7 @@ public:
void print_trace_files();
void update_components_power();
void update_coefficients();
- void print_power_kernel_stats(double gpu_sim_cycle, double gpu_tot_sim_cycle, double init_value);
+ void print_power_kernel_stats(double gpu_sim_cycle, double gpu_tot_sim_cycle, double init_value, const std::string & kernel_info_string);
void power_metrics_calculations();
void set_inst_power(bool clk_gated_lanes, double tot_cycles, double busy_cycles, double tot_inst, double int_inst, double fp_inst, double load_inst, double store_inst, double committed_inst);
void set_regfile_power(double reads, double writes, double ops);