File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -748,6 +748,8 @@ void shader_core_stats::visualizer_print(gzFile visualizer_file) {
748748 }
749749 gzprintf (visualizer_file, " \n " );
750750
751+ gzprintf (visualizer_file, " ctas_completed: %d\n " , ctas_completed);
752+ ctas_completed = 0 ;
751753 // warp issue breakdown
752754 unsigned sid = m_config->gpgpu_warp_issue_shader ;
753755 unsigned count = 0 ;
@@ -2685,6 +2687,7 @@ void shader_core_ctx::register_cta_thread_exit(unsigned cta_num,
26852687 m_cta_status[cta_num]--;
26862688 if (!m_cta_status[cta_num]) {
26872689 // Increment the completed CTAs
2690+ m_stats->ctas_completed ++;
26882691 m_gpu->inc_completed_cta ();
26892692 m_n_active_cta--;
26902693 m_barriers.deallocate_barrier (cta_num);
@@ -2751,6 +2754,7 @@ void gpgpu_sim::shader_print_runtime_stat(FILE *fout) {
27512754
27522755void gpgpu_sim::shader_print_scheduler_stat (FILE *fout,
27532756 bool print_dynamic_info) const {
2757+ fprintf (fout, " ctas_completed %d, " , m_shader_stats->ctas_completed );
27542758 // Print out the stats from the sampling shader core
27552759 const unsigned scheduler_sampling_core =
27562760 m_shader_config->gpgpu_warp_issue_shader ;
Original file line number Diff line number Diff line change @@ -1669,6 +1669,7 @@ struct shader_core_stats_pod {
16691669 unsigned *single_issue_nums;
16701670 unsigned *dual_issue_nums;
16711671
1672+ unsigned ctas_completed;
16721673 // memory access classification
16731674 int gpgpu_n_mem_read_local;
16741675 int gpgpu_n_mem_write_local;
@@ -1782,6 +1783,7 @@ class shader_core_stats : public shader_core_stats_pod {
17821783 dual_issue_nums =
17831784 (unsigned *)calloc (config->gpgpu_num_sched_per_core , sizeof (unsigned ));
17841785
1786+ ctas_completed = 0 ;
17851787 n_simt_to_mem = (long *)calloc (config->num_shader (), sizeof (long ));
17861788 n_mem_to_simt = (long *)calloc (config->num_shader (), sizeof (long ));
17871789
You can’t perform that action at this time.
0 commit comments