summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/shader.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpgpu-sim/shader.cc')
-rw-r--r--src/gpgpu-sim/shader.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gpgpu-sim/shader.cc b/src/gpgpu-sim/shader.cc
index 72a1936..8573344 100644
--- a/src/gpgpu-sim/shader.cc
+++ b/src/gpgpu-sim/shader.cc
@@ -830,6 +830,20 @@ void TwoLevelScheduler::cycle() {
break;
}
}
+
+ // tgrogers - fixing a warning about unused variables at the top of this fucntion...
+ // This scheduler has A LOT of copied code from the LRR scheduler.
+ // TODO - this thing really needs to be re-written in a modular way.
+ // For now, to get rid of the warnings I am including the stats epilogue
+ // from the original scheduler function that the author of this function forgot to copy/paste
+ //
+ // issue stall statistics:
+ if( !valid_inst )
+ m_stats->shader_cycle_distro[0]++; // idle or control hazard
+ else if( !ready_inst )
+ m_stats->shader_cycle_distro[1]++; // waiting for RAW hazards (possibly due to memory)
+ else if( !issued_inst )
+ m_stats->shader_cycle_distro[2]++; // pipeline stalled
}
void shader_core_ctx::read_operands()