summaryrefslogtreecommitdiff
path: root/src/gpuwattch
diff options
context:
space:
mode:
authorWilson Fung <[email protected]>2013-01-26 13:50:40 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:49:24 -0700
commit8d8fa45b0fa6bc3afcb65463890c38d1c9255ec0 (patch)
treeb656b84fc3623a20e17c8b9620111cbd231ccf62 /src/gpuwattch
parentb3de117ec61c3b59dc386562dc821fed6627e38b (diff)
Now even the power model log will have kernel names printed out.
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15110]
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);