diff options
| author | Davit Grigoryan <[email protected]> | 2026-04-27 02:10:06 +0000 |
|---|---|---|
| committer | Davit Grigoryan <[email protected]> | 2026-04-27 02:10:06 +0000 |
| commit | 2f190971f5f952f55197d385c688667439bc6649 (patch) | |
| tree | 5f9945497f9ac36ee1cbb35d6aca1dea39e6a08b /src/gpgpu-sim/shader.cc | |
| parent | 13d5fae1ac28988d071b4459af169e53361921d8 (diff) | |
add debug scoreboard stats counting
Diffstat (limited to 'src/gpgpu-sim/shader.cc')
| -rw-r--r-- | src/gpgpu-sim/shader.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gpgpu-sim/shader.cc b/src/gpgpu-sim/shader.cc index 8eb3f28..a113ddb 100644 --- a/src/gpgpu-sim/shader.cc +++ b/src/gpgpu-sim/shader.cc @@ -6384,6 +6384,10 @@ void shader_core_ctx::print_cache_stats(FILE *fp, unsigned &dl1_accesses, m_ldst_unit->print_cache_stats(fp, dl1_accesses, dl1_misses); } +void shader_core_ctx::print_scoreboard_accounting(FILE *fp) const { + if (m_scoreboard) m_scoreboard->dumpAccounting(fp); +} + void shader_core_ctx::get_cache_stats(cache_stats &cs) { // Adds stats from each cache to 'cs' cs += m_L1I->get_stats(); // Get L1I stats @@ -7363,6 +7367,12 @@ void simt_core_cluster::print_cache_stats(FILE *fp, unsigned &dl1_accesses, } } +void simt_core_cluster::print_scoreboard_accounting(FILE *fp) const { + for (unsigned i = 0; i < m_config->n_simt_cores_per_cluster; ++i) { + m_core[i]->print_scoreboard_accounting(fp); + } +} + void simt_core_cluster::get_icnt_stats(long &n_simt_to_mem, long &n_mem_to_simt) const { long simt_to_mem = 0; |
