Go to the documentation of this file.
41 #include "params/ComputeUnit.hh"
49 int num_func_units =
p->num_SIMDs +
p->num_scalar_cores
50 +
p->num_global_mem_pipes +
p->num_shared_mem_pipes
51 +
p->num_scalar_mem_pipes;
54 for (
auto &func_unit_wf_list :
_readyWFs) {
55 func_unit_wf_list.reserve(
p->n_wf);
62 for (
auto &func_unit_wf_list :
_readyWFs) {
63 func_unit_wf_list.resize(0);
94 for (
auto it = func_unit_wf_list.begin(); it != func_unit_wf_list.end();) {
95 if ((*it)->instructionBuffer.empty()) {
96 it = func_unit_wf_list.erase(it);
108 int num_func_units =
p->num_SIMDs +
p->num_scalar_cores
109 +
p->num_global_mem_pipes +
p->num_shared_mem_pipes
110 +
p->num_scalar_mem_pipes;
119 func_unit_ready_inst =
nullptr;
123 func_unit_status =
EMPTY;
ScoreboardCheckToSchedule()=delete
void reset() override
Reset the pipe stage interface.
GPUDynInstPtr & readyInst(int func_unit_id)
void reset() override
Reset the pipe stage interface.
std::vector< GPUDynInstPtr > _readyInsts
DISPATCH_STATUS dispatchStatus(int func_unit_id) const
std::vector< std::vector< Wavefront * > > _readyWFs
void markWFReady(Wavefront *wf, int func_unit_id)
Mark the WF as ready for execution on a particular functional unit.
void updateReadyList(int func_unit_id)
Delete all wavefronts that have been marked as ready at scoreboard stage but are found to have empty ...
std::vector< DISPATCH_STATUS > _dispatchStatus
void dispatchTransition(const GPUDynInstPtr &gpu_dyn_inst, int func_unit_id, DISPATCH_STATUS disp_status)
Once the scheduler has chosen a winning WF for execution, and after the WF's oldest instruction's ope...
std::shared_ptr< GPUDynInst > GPUDynInstPtr
std::vector< Wavefront * > & readyWFs(int func_unit_id)
TODO: These methods expose this class' implementation too much by returning references to its interna...
ScheduleToExecute()=delete
int numReadyLists() const
Returns the number of ready lists (i.e., the number of functional units).
Generated on Wed Sep 30 2020 14:02:12 for gem5 by doxygen 1.8.17