From e4d7bf562e8e90fa4523efc186322bff416c0506 Mon Sep 17 00:00:00 2001 From: Tim Rogers Date: Sat, 9 Feb 2013 14:58:14 -0800 Subject: Fixing a slew of compiler warnings [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15218] --- src/gpgpu-sim/shader.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/gpgpu-sim/shader.cc') 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() -- cgit v1.3