diff --git a/src/gpu-compute/schedule_stage.cc b/src/gpu-compute/schedule_stage.cc index 0785aa03d8..e0600a623a 100644 --- a/src/gpu-compute/schedule_stage.cc +++ b/src/gpu-compute/schedule_stage.cc @@ -236,9 +236,13 @@ void ScheduleStage::scheduleRfDestOperands() { for (int j = 0; j < computeUnit.numExeUnits(); ++j) { - if (!dispatchList->at(j).first) { + if (dispatchList->at(j).second == EMPTY || + dispatchList->at(j).second == SKIP) { continue; } + + assert(dispatchList->at(j).first); + // get the wave on dispatch list and attempt to allocate write // resources in the RFs Wavefront *w = dispatchList->at(j).first;