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) {
748
748
}
749
749
gzprintf (visualizer_file, " \n " );
750
750
751
+ gzprintf (visualizer_file, " ctas_completed: %d\n " , ctas_completed);
752
+ ctas_completed = 0 ;
751
753
// warp issue breakdown
752
754
unsigned sid = m_config->gpgpu_warp_issue_shader ;
753
755
unsigned count = 0 ;
@@ -2685,6 +2687,7 @@ void shader_core_ctx::register_cta_thread_exit(unsigned cta_num,
2685
2687
m_cta_status[cta_num]--;
2686
2688
if (!m_cta_status[cta_num]) {
2687
2689
// Increment the completed CTAs
2690
+ m_stats->ctas_completed ++;
2688
2691
m_gpu->inc_completed_cta ();
2689
2692
m_n_active_cta--;
2690
2693
m_barriers.deallocate_barrier (cta_num);
@@ -2751,6 +2754,7 @@ void gpgpu_sim::shader_print_runtime_stat(FILE *fout) {
2751
2754
2752
2755
void gpgpu_sim::shader_print_scheduler_stat (FILE *fout,
2753
2756
bool print_dynamic_info) const {
2757
+ fprintf (fout, " ctas_completed %d, " , m_shader_stats->ctas_completed );
2754
2758
// Print out the stats from the sampling shader core
2755
2759
const unsigned scheduler_sampling_core =
2756
2760
m_shader_config->gpgpu_warp_issue_shader ;
Original file line number Diff line number Diff line change @@ -1668,6 +1668,7 @@ struct shader_core_stats_pod {
1668
1668
unsigned *single_issue_nums;
1669
1669
unsigned *dual_issue_nums;
1670
1670
1671
+ unsigned ctas_completed;
1671
1672
// memory access classification
1672
1673
int gpgpu_n_mem_read_local;
1673
1674
int gpgpu_n_mem_write_local;
@@ -1781,6 +1782,7 @@ class shader_core_stats : public shader_core_stats_pod {
1781
1782
dual_issue_nums =
1782
1783
(unsigned *)calloc (config->gpgpu_num_sched_per_core , sizeof (unsigned ));
1783
1784
1785
+ ctas_completed = 0 ;
1784
1786
n_simt_to_mem = (long *)calloc (config->num_shader (), sizeof (long ));
1785
1787
n_mem_to_simt = (long *)calloc (config->num_shader (), sizeof (long ));
1786
1788
You can’t perform that action at this time.
0 commit comments