diff options
| author | Tim Rogers <[email protected]> | 2011-10-25 09:35:16 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:18:23 -0700 |
| commit | c628db174185eb1279d692d28b2d1dba42f90942 (patch) | |
| tree | 1c1a46aedcb44b97a344c790aa05b527644bb306 /src/gpgpu-sim | |
| parent | 90edcc1de1fab2889aed1e4a1fa0203fb7b57106 (diff) | |
Integration change. - CL 9058 , adding the l1 cache stat print to the end of execution
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 10727]
Diffstat (limited to 'src/gpgpu-sim')
| -rw-r--r-- | src/gpgpu-sim/gpu-sim.cc | 2 | ||||
| -rw-r--r-- | src/gpgpu-sim/gpu-sim.h | 2 | ||||
| -rw-r--r-- | src/gpgpu-sim/shader.cc | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/src/gpgpu-sim/gpu-sim.cc b/src/gpgpu-sim/gpu-sim.cc index 10fadb7..98c3984 100644 --- a/src/gpgpu-sim/gpu-sim.cc +++ b/src/gpgpu-sim/gpu-sim.cc @@ -599,6 +599,8 @@ 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 ); + shader_print_l1_miss_stat( stdout ); + m_shader_stats->print(stdout); // performance counter that are not local to one shader diff --git a/src/gpgpu-sim/gpu-sim.h b/src/gpgpu-sim/gpu-sim.h index 396b884..68bfc5c 100644 --- a/src/gpgpu-sim/gpu-sim.h +++ b/src/gpgpu-sim/gpu-sim.h @@ -243,7 +243,7 @@ private: void L2c_print_cache_stat() const; void shader_print_runtime_stat( FILE *fout ); - void shader_print_l1_miss_stat( FILE *fout ); + void shader_print_l1_miss_stat( FILE *fout ) const; void visualizer_printstat(); void print_shader_cycle_distro( FILE *fout ) const; diff --git a/src/gpgpu-sim/shader.cc b/src/gpgpu-sim/shader.cc index 204fe83..30e26ad 100644 --- a/src/gpgpu-sim/shader.cc +++ b/src/gpgpu-sim/shader.cc @@ -1298,7 +1298,7 @@ void gpgpu_sim::shader_print_runtime_stat( FILE *fout ) } -void gpgpu_sim::shader_print_l1_miss_stat( FILE *fout ) +void gpgpu_sim::shader_print_l1_miss_stat( FILE *fout ) const { unsigned total_d1_misses = 0, total_d1_accesses = 0; for ( unsigned i = 0; i < m_shader_config->n_simt_clusters; ++i ) { |
