diff options
| author | Tayler Hetherington <[email protected]> | 2013-03-05 15:24:42 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:50:05 -0700 |
| commit | d8c39c7de2957efb10797e24b835306e295df7f2 (patch) | |
| tree | 29d214d692daa0525ed19f3aef4433e78639fa87 /src/gpgpu-sim/gpu-sim.cc | |
| parent | bf2f85331ff81618ff51635179765653d508716f (diff) | |
GPUWattch bug fix: Performance counters not being correctly reset at kernel completion.
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15413]
Diffstat (limited to 'src/gpgpu-sim/gpu-sim.cc')
| -rw-r--r-- | src/gpgpu-sim/gpu-sim.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpgpu-sim/gpu-sim.cc b/src/gpgpu-sim/gpu-sim.cc index 3a8cdea..a6a365c 100644 --- a/src/gpgpu-sim/gpu-sim.cc +++ b/src/gpgpu-sim/gpu-sim.cc @@ -507,6 +507,9 @@ void gpgpu_sim::set_kernel_done( kernel_info_t *kernel ) break; } } +#ifdef GPGPUSIM_POWER_MODEL + mcpat_reset_perf_count(m_gpgpusim_wrapper, true); +#endif assert( k != m_running_kernels.end() ); } |
