Go to the documentation of this file.
39 #include "params/ComputeUnit.hh"
47 int num_func_units =
p.num_SIMDs +
p.num_scalar_cores
48 +
p.num_global_mem_pipes +
p.num_shared_mem_pipes
49 +
p.num_scalar_mem_pipes;
52 for (
auto &func_unit_wf_list :
_readyWFs) {
53 func_unit_wf_list.reserve(
p.n_wf);
60 for (
auto &func_unit_wf_list :
_readyWFs) {
61 func_unit_wf_list.resize(0);
92 for (
auto it = func_unit_wf_list.begin(); it != func_unit_wf_list.end();) {
93 if ((*it)->instructionBuffer.empty()) {
94 it = func_unit_wf_list.erase(it);
106 int num_func_units =
p.num_SIMDs +
p.num_scalar_cores
107 +
p.num_global_mem_pipes +
p.num_shared_mem_pipes
108 +
p.num_scalar_mem_pipes;
117 func_unit_ready_inst =
nullptr;
121 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 Tue Mar 23 2021 19:41:27 for gem5 by doxygen 1.8.17