diff options
| author | Tim Rogers <[email protected]> | 2011-11-30 16:33:52 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:19:01 -0700 |
| commit | c587d68644cc1e907166486debdf4bb0b1ff1276 (patch) | |
| tree | e0b51a22ee45a7a1d06a1e5b3d46140372a4dc11 /src | |
| parent | 287fdac3708024da85392b72e19a35e04285dfb8 (diff) | |
Printing out the simulation rate
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 11066]
Diffstat (limited to 'src')
| -rw-r--r-- | src/gpgpu-sim/gpu-sim.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpgpu-sim/gpu-sim.cc b/src/gpgpu-sim/gpu-sim.cc index a7dafcb..3b060a1 100644 --- a/src/gpgpu-sim/gpu-sim.cc +++ b/src/gpgpu-sim/gpu-sim.cc @@ -600,6 +600,11 @@ void gpgpu_sim::gpu_print_stat() const printf("gpu_stall_dramfull = %d\n", gpu_stall_dramfull); printf("gpu_stall_icnt2sh = %d\n", gpu_stall_icnt2sh ); + time_t curr_time; + time(&curr_time); + unsigned long long elapsed_time = MAX( curr_time - g_simulation_starttime, 1 ); + printf( "gpu_total_sim_rate=%u\n", (unsigned)( ( gpu_tot_sim_insn + gpu_sim_insn ) / elapsed_time ) ); + shader_print_l1_miss_stat( stdout ); m_shader_stats->print(stdout); |
