summaryrefslogtreecommitdiff
path: root/src/gpuwattch/gpgpu_sim_wrapper.cc
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/gpgpu_sim_wrapper.cc
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/gpgpu_sim_wrapper.cc')
-rw-r--r--src/gpuwattch/gpgpu_sim_wrapper.cc3
1 files changed, 2 insertions, 1 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;