37#include "params/ComputeUnit.hh"
48 int num_func_units =
p.num_SIMDs +
p.num_scalar_cores
49 +
p.num_global_mem_pipes +
p.num_shared_mem_pipes
50 +
p.num_scalar_mem_pipes;
53 for (
auto &func_unit_wf_list :
_readyWFs) {
54 func_unit_wf_list.reserve(
p.n_wf);
61 for (
auto &func_unit_wf_list :
_readyWFs) {
62 func_unit_wf_list.resize(0);
93 for (
auto it = func_unit_wf_list.begin(); it != func_unit_wf_list.end();) {
94 if ((*it)->instructionBuffer.empty()) {
95 it = func_unit_wf_list.erase(it);
107 int num_func_units =
p.num_SIMDs +
p.num_scalar_cores
108 +
p.num_global_mem_pipes +
p.num_shared_mem_pipes
109 +
p.num_scalar_mem_pipes;
118 func_unit_ready_inst =
nullptr;
122 func_unit_status =
EMPTY;
ScheduleToExecute()=delete
DISPATCH_STATUS dispatchStatus(int func_unit_id) const
std::vector< GPUDynInstPtr > _readyInsts
void reset() override
Reset the pipe stage interface.
GPUDynInstPtr & readyInst(int func_unit_id)
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::vector< DISPATCH_STATUS > _dispatchStatus
int numReadyLists() const
Returns the number of ready lists (i.e., the number of functional units).
std::vector< Wavefront * > & readyWFs(int func_unit_id)
TODO: These methods expose this class' implementation too much by returning references to its interna...
void reset() override
Reset the pipe stage interface.
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< std::vector< Wavefront * > > _readyWFs
ScoreboardCheckToSchedule()=delete
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
std::shared_ptr< GPUDynInst > GPUDynInstPtr