gem5
v21.2.1.0
|
#include <compute_unit.hh>
Classes | |
struct | ComputeUnitStats |
class | DataPort |
Data access Port. More... | |
class | DTLBPort |
Data TLB port. More... | |
class | GMTokenPort |
class | ITLBPort |
class | LDSPort |
the port intended to communicate between the CU and its LDS More... | |
class | ScalarDataPort |
class | ScalarDTLBPort |
class | SQCPort |
Public Types | |
typedef ComputeUnitParams | Params |
typedef std::unordered_map< Addr, std::pair< int, int > > | pageDataStruct |
![]() | |
using | Params = ClockedObjectParams |
Parameters of ClockedObject. More... | |
![]() | |
typedef SimObjectParams | Params |
Public Member Functions | |
int | numExeUnits () const |
int | firstMemUnit () const |
int | lastMemUnit () const |
int | mapWaveToScalarAlu (Wavefront *w) const |
int | mapWaveToScalarAluGlobalIdx (Wavefront *w) const |
int | mapWaveToGlobalMem (Wavefront *w) const |
int | mapWaveToLocalMem (Wavefront *w) const |
int | mapWaveToScalarMem (Wavefront *w) const |
void | insertInPipeMap (Wavefront *w) |
void | deleteFromPipeMap (Wavefront *w) |
ComputeUnit (const Params &p) | |
~ComputeUnit () | |
int | oprNetPipeLength () const |
int | simdUnitWidth () const |
int | spBypassLength () const |
int | dpBypassLength () const |
int | scalarPipeLength () const |
int | storeBusLength () const |
int | loadBusLength () const |
int | wfSize () const |
void | exec () |
void | initiateFetch (Wavefront *wavefront) |
void | fetch (PacketPtr pkt, Wavefront *wavefront) |
void | fillKernelState (Wavefront *w, HSAQueueEntry *task) |
void | startWavefront (Wavefront *w, int waveId, LdsChunk *ldsChunk, HSAQueueEntry *task, int bar_id, bool fetchContext=false) |
void | doInvalidate (RequestPtr req, int kernId) |
trigger invalidate operation in the cu More... | |
void | doFlush (GPUDynInstPtr gpuDynInst) |
trigger flush operation in the cu More... | |
void | dispWorkgroup (HSAQueueEntry *task, int num_wfs_in_wg) |
bool | hasDispResources (HSAQueueEntry *task, int &num_wfs_in_wg) |
int | cacheLineSize () const |
int | getCacheLineBits () const |
void | resetRegisterPool () |
int | numYetToReachBarrier (int bar_id) |
bool | allAtBarrier (int bar_id) |
void | incNumAtBarrier (int bar_id) |
int | numAtBarrier (int bar_id) |
int | maxBarrierCnt (int bar_id) |
void | resetBarrier (int bar_id) |
void | decMaxBarrierCnt (int bar_id) |
void | releaseBarrier (int bar_id) |
void | releaseWFsFromBarrier (int bar_id) |
int | numBarrierSlots () const |
template<typename c0 , typename c1 > | |
void | doSmReturn (GPUDynInstPtr gpuDynInst) |
virtual void | init () override |
init() is called after all C++ SimObjects have been created and all ports are connected. More... | |
void | sendRequest (GPUDynInstPtr gpuDynInst, PortID index, PacketPtr pkt) |
void | sendScalarRequest (GPUDynInstPtr gpuDynInst, PacketPtr pkt) |
void | injectGlobalMemFence (GPUDynInstPtr gpuDynInst, bool kernelMemSync, RequestPtr req=nullptr) |
void | handleMemPacket (PacketPtr pkt, int memport_index) |
bool | processTimingPacket (PacketPtr pkt) |
void | processFetchReturn (PacketPtr pkt) |
void | updatePageDivergenceDist (Addr addr) |
RequestorID | requestorId () |
bool | isDone () const |
bool | isVectorAluIdle (uint32_t simdId) const |
LdsState & | getLds () const |
int32_t | getRefCounter (const uint32_t dispatchId, const uint32_t wgId) const |
bool | sendToLds (GPUDynInstPtr gpuDynInst) |
send a general request to the LDS make sure to look at the return value here as your request might be NACK'd and returning false means that you have to have some backup plan More... | |
void | exitCallback () |
TokenManager * | getTokenManager () |
Port & | getPort (const std::string &if_name, PortID idx) override |
Get a port with a given name and index. More... | |
InstSeqNum | getAndIncSeqNum () |
void | updateInstStats (GPUDynInstPtr gpuDynInst) |
![]() | |
ClockedObject (const ClockedObjectParams &p) | |
void | serialize (CheckpointOut &cp) const override |
Serialize an object. More... | |
void | unserialize (CheckpointIn &cp) override |
Unserialize an object. More... | |
![]() | |
const Params & | params () const |
SimObject (const Params &p) | |
virtual | ~SimObject () |
virtual void | loadState (CheckpointIn &cp) |
loadState() is called on each SimObject when restoring from a checkpoint. More... | |
virtual void | initState () |
initState() is called on each SimObject when not restoring from a checkpoint. More... | |
virtual void | regProbePoints () |
Register probe points for this object. More... | |
virtual void | regProbeListeners () |
Register probe listeners for this object. More... | |
ProbeManager * | getProbeManager () |
Get the probe manager for this object. More... | |
virtual void | startup () |
startup() is the final initialization call before simulation. More... | |
DrainState | drain () override |
Provide a default implementation of the drain interface for objects that don't need draining. More... | |
virtual void | memWriteback () |
Write back dirty buffers to memory using functional writes. More... | |
virtual void | memInvalidate () |
Invalidate the contents of memory buffers. More... | |
void | serialize (CheckpointOut &cp) const override |
Serialize an object. More... | |
void | unserialize (CheckpointIn &cp) override |
Unserialize an object. More... | |
![]() | |
EventQueue * | eventQueue () const |
void | schedule (Event &event, Tick when) |
void | deschedule (Event &event) |
void | reschedule (Event &event, Tick when, bool always=false) |
void | schedule (Event *event, Tick when) |
void | deschedule (Event *event) |
void | reschedule (Event *event, Tick when, bool always=false) |
void | wakeupEventQueue (Tick when=(Tick) -1) |
This function is not needed by the usual gem5 event loop but may be necessary in derived EventQueues which host gem5 on other schedulers. More... | |
void | setCurTick (Tick newVal) |
EventManager (EventManager &em) | |
Event manger manages events in the event queue. More... | |
EventManager (EventManager *em) | |
EventManager (EventQueue *eq) | |
![]() | |
Serializable () | |
virtual | ~Serializable () |
void | serializeSection (CheckpointOut &cp, const char *name) const |
Serialize an object into a new section. More... | |
void | serializeSection (CheckpointOut &cp, const std::string &name) const |
void | unserializeSection (CheckpointIn &cp, const char *name) |
Unserialize an a child object. More... | |
void | unserializeSection (CheckpointIn &cp, const std::string &name) |
![]() | |
DrainState | drainState () const |
Return the current drain state of an object. More... | |
virtual void | notifyFork () |
Notify a child process of a fork. More... | |
![]() | |
Group (Group *parent, const char *name=nullptr) | |
Construct a new statistics group. More... | |
virtual | ~Group () |
virtual void | regStats () |
Callback to set stat parameters. More... | |
virtual void | resetStats () |
Callback to reset stats. More... | |
virtual void | preDumpStats () |
Callback before stats are dumped. More... | |
void | addStat (statistics::Info *info) |
Register a stat with this group. More... | |
const std::map< std::string, Group * > & | getStatGroups () const |
Get all child groups associated with this object. More... | |
const std::vector< Info * > & | getStats () const |
Get all stats associated with this object. More... | |
void | addStatGroup (const char *name, Group *block) |
Add a stat block as a child of this block. More... | |
const Info * | resolveStat (std::string name) const |
Resolve a stat by its name within this group. More... | |
void | mergeStatGroup (Group *block) |
Merge the contents (stats & children) of a block to this block. More... | |
Group ()=delete | |
Group (const Group &)=delete | |
Group & | operator= (const Group &)=delete |
![]() | |
Named (const std::string &name_) | |
virtual | ~Named ()=default |
virtual std::string | name () const |
![]() | |
void | updateClockPeriod () |
Update the tick to the current tick. More... | |
Tick | clockEdge (Cycles cycles=Cycles(0)) const |
Determine the tick when a cycle begins, by default the current one, but the argument also enables the caller to determine a future cycle. More... | |
Cycles | curCycle () const |
Determine the current cycle, corresponding to a tick aligned to a clock edge. More... | |
Tick | nextCycle () const |
Based on the clock of the object, determine the start tick of the first cycle that is at least one cycle in the future. More... | |
uint64_t | frequency () const |
Tick | clockPeriod () const |
double | voltage () const |
Cycles | ticksToCycles (Tick t) const |
Tick | cyclesToTicks (Cycles c) const |
Protected Attributes | |
RequestorID | _requestorId |
LdsState & | lds |
![]() | |
const SimObjectParams & | _params |
Cached copy of the object parameters. More... | |
![]() | |
EventQueue * | eventq |
A pointer to this object's event queue. More... | |
Private Member Functions | |
WFBarrier & | barrierSlot (int bar_id) |
int | getFreeBarrierId () |
Private Attributes | |
const int | _cacheLineSize |
const int | _numBarrierSlots |
int | cacheLineBits |
InstSeqNum | globalSeqNum |
int | wavefrontSize |
ScoreboardCheckToSchedule | scoreboardCheckToSchedule |
TODO: Update these comments once the pipe stage interface has been fully refactored. More... | |
ScheduleToExecute | scheduleToExecute |
std::vector< WFBarrier > | wfBarrierSlots |
The barrier slots for this CU. More... | |
std::unordered_set< int > | freeBarrierIds |
A set used to easily retrieve a free barrier ID. More... | |
std::unordered_map< GPUDynInstPtr, Tick > | headTailMap |
Additional Inherited Members | |
![]() | |
static void | serializeAll (const std::string &cpt_dir) |
Create a checkpoint by serializing all SimObjects in the system. More... | |
static SimObject * | find (const char *name) |
Find the SimObject with the given name and return a pointer to it. More... | |
static void | setSimObjectResolver (SimObjectResolver *resolver) |
There is a single object name resolver, and it is only set when simulation is restoring from checkpoints. More... | |
static SimObjectResolver * | getSimObjectResolver () |
There is a single object name resolver, and it is only set when simulation is restoring from checkpoints. More... | |
![]() | |
static const std::string & | currentSection () |
Gets the fully-qualified name of the active section. More... | |
static void | generateCheckpointOut (const std::string &cpt_dir, std::ofstream &outstream) |
Generate a checkpoint file so that the serialization can be routed to it. More... | |
![]() | |
Drainable () | |
virtual | ~Drainable () |
virtual void | drainResume () |
Resume execution after a successful drain. More... | |
void | signalDrainDone () const |
Signal that an object is drained. More... | |
![]() | |
Clocked (ClockDomain &clk_domain) | |
Create a clocked object and set the clock domain based on the parameters. More... | |
Clocked (Clocked &)=delete | |
Clocked & | operator= (Clocked &)=delete |
virtual | ~Clocked () |
Virtual destructor due to inheritance. More... | |
void | resetClock () const |
Reset the object's clock using the current global tick value. More... | |
virtual void | clockPeriodUpdated () |
A hook subclasses can implement so they can do any extra work that's needed when the clock rate is changed. More... | |
Definition at line 201 of file compute_unit.hh.
typedef std::unordered_map<Addr, std::pair<int, int> > gem5::ComputeUnit::pageDataStruct |
Definition at line 482 of file compute_unit.hh.
typedef ComputeUnitParams gem5::ComputeUnit::Params |
Definition at line 290 of file compute_unit.hh.
gem5::ComputeUnit::ComputeUnit | ( | const Params & | p | ) |
This check is necessary because std::bitset only provides conversion to unsigned long or unsigned long long via to_ulong() or to_ullong(). there are a few places in the code where to_ullong() is used, however if wavefrontSize is larger than a value the host can support then bitset will throw a runtime exception. We should remove all use of to_long() or to_ullong() so we can have wavefrontSize greater than 64b, however until that is done this assert is required.
Definition at line 64 of file compute_unit.cc.
References exec().
gem5::ComputeUnit::~ComputeUnit | ( | ) |
Definition at line 218 of file compute_unit.cc.
References gem5::ArmISA::i, gem5::ArmISA::j, lastVaddrCU, lastVaddrSimd, gem5::Shader::n_wf, numVectorALUs, shader, and wfList.
bool gem5::ComputeUnit::allAtBarrier | ( | int | bar_id | ) |
Definition at line 654 of file compute_unit.cc.
References barrierSlot().
Referenced by gem5::ScoreboardCheckStage::ready().
|
inlineprivate |
Definition at line 418 of file compute_unit.hh.
References gem5::WFBarrier::InvalidID, and wfBarrierSlots.
Referenced by allAtBarrier(), decMaxBarrierCnt(), dispWorkgroup(), incNumAtBarrier(), maxBarrierCnt(), numAtBarrier(), numYetToReachBarrier(), releaseBarrier(), and resetBarrier().
|
inline |
Definition at line 411 of file compute_unit.hh.
References _cacheLineSize.
Referenced by gem5::FetchUnit::init(), and gem5::FetchUnit::initiateFetch().
void gem5::ComputeUnit::decMaxBarrierCnt | ( | int | bar_id | ) |
Definition at line 689 of file compute_unit.cc.
References barrierSlot().
Referenced by gem5::Gcn3ISA::Inst_SOPP__S_ENDPGM::execute(), and gem5::VegaISA::Inst_SOPP__S_ENDPGM::execute().
void gem5::ComputeUnit::deleteFromPipeMap | ( | Wavefront * | w | ) |
Definition at line 507 of file compute_unit.cc.
References panic_if, pipeMap, and gem5::MipsISA::w.
Referenced by gem5::Wavefront::exec().
void gem5::ComputeUnit::dispWorkgroup | ( | HSAQueueEntry * | task, |
int | num_wfs_in_wg | ||
) |
If this WG only has one WF it will not consume any barrier resources because it has no need of them.
Find a free barrier slot for this WG. Each WF in the WG will receive the same barrier ID.
Definition at line 420 of file compute_unit.cc.
References gem5::RegisterManager::allocateRegisters(), barrierSlot(), cu_id, gem5::HSAQueueEntry::dispatchId(), DPRINTF, fillKernelState(), getFreeBarrierId(), gem5::HSAQueueEntry::globalWgId(), gem5::ArmISA::i, gem5::WFBarrier::InvalidID, gem5::HSAQueueEntry::isInvDone(), gem5::ArmISA::j, lds, gem5::HSAQueueEntry::ldsSize(), gem5::Shader::n_wf, gem5::Clocked::nextCycle(), gem5::HSAQueueEntry::numScalarRegs(), numVectorALUs, gem5::HSAQueueEntry::numVectorRegs(), numWfsToSched, panic_if, registerManager, gem5::LdsState::reserveSpace(), gem5::Wavefront::S_STOPPED, gem5::EventManager::schedule(), gem5::Event::scheduled(), shader, startWavefront(), tickEvent, gem5::MipsISA::w, and wfList.
void gem5::ComputeUnit::doFlush | ( | GPUDynInstPtr | gpuDynInst | ) |
trigger flush operation in the cu
gpuDynInst: inst passed to the request
Definition at line 402 of file compute_unit.cc.
References injectGlobalMemFence().
void gem5::ComputeUnit::doInvalidate | ( | RequestPtr | req, |
int | kernId | ||
) |
trigger invalidate operation in the cu
req: request initialized in shader, carrying the invlidate flags
Definition at line 383 of file compute_unit.cc.
References getAndIncSeqNum(), and injectGlobalMemFence().
void gem5::ComputeUnit::doSmReturn | ( | GPUDynInstPtr | gpuDynInst | ) |
|
inline |
Definition at line 390 of file compute_unit.hh.
References dpBypassPipeLength.
Referenced by gem5::VectorRegisterFile::waveExecuteInst().
void gem5::ComputeUnit::exec | ( | ) |
Definition at line 719 of file compute_unit.cc.
References cu_id, DPRINTF, gem5::FetchStage::exec(), gem5::LocalMemPipeline::exec(), gem5::ScalarMemPipeline::exec(), gem5::GlobalMemPipeline::exec(), gem5::ScheduleStage::exec(), gem5::ExecStage::exec(), gem5::ScoreboardCheckStage::exec(), execStage, fetchStage, globalMemoryPipe, isDone(), localMemoryPipe, gem5::Clocked::nextCycle(), gem5::Shader::notifyCuSleep(), scalarMemoryPipe, gem5::EventManager::schedule(), scheduleStage, scoreboardCheckStage, shader, srf, stats, tickEvent, gem5::ComputeUnit::ComputeUnitStats::totalCycles, and vrf.
Referenced by ComputeUnit().
void gem5::ComputeUnit::exitCallback | ( | ) |
Definition at line 1922 of file compute_unit.cc.
References countPages, gem5::OutputDirectory::create(), gem5::Named::name(), pageAccesses, gem5::simout, and gem5::OutputStream::stream().
void gem5::ComputeUnit::fillKernelState | ( | Wavefront * | w, |
HSAQueueEntry * | task | ||
) |
Definition at line 295 of file compute_unit.cc.
References gem5::HSAQueueEntry::gridSize(), gem5::HSAQueueEntry::numScalarRegs(), gem5::HSAQueueEntry::numVectorRegs(), gem5::MipsISA::w, and gem5::HSAQueueEntry::wgSize().
Referenced by dispWorkgroup().
int gem5::ComputeUnit::firstMemUnit | ( | ) | const |
Definition at line 239 of file compute_unit.cc.
References numScalarALUs, and numVectorALUs.
Referenced by gem5::ScheduleStage::arbitrateVrfToLdsBus(), and gem5::ScheduleStage::exec().
|
inline |
Definition at line 881 of file compute_unit.hh.
References globalSeqNum.
Referenced by doInvalidate().
|
inline |
Definition at line 412 of file compute_unit.hh.
References cacheLineBits.
Referenced by gem5::FetchUnit::initiateFetch().
|
inlineprivate |
Definition at line 425 of file compute_unit.hh.
References freeBarrierIds.
Referenced by dispWorkgroup().
|
inline |
Definition at line 472 of file compute_unit.hh.
References lds.
Referenced by gem5::Gcn3ISA::Inst_SOPP__S_ENDPGM::execute(), gem5::VegaISA::Inst_SOPP__S_ENDPGM::execute(), and gem5::GPUDynInst::resolveFlatSegment().
Get a port with a given name and index.
This is used at binding time and returns a reference to a protocol-agnostic port.
gem5 has a request and response port interface. All memory objects are connected together via ports. These ports provide a rigid interface between these memory objects. These ports implement three different memory system modes: timing, atomic, and functional. The most important mode is the timing mode and here timing mode is used for conducting cycle-level timing experiments. The other modes are only used in special circumstances and should not be used to conduct cycle-level timing experiments. The other modes are only used in special circumstances. These ports allow SimObjects to communicate with each other.
if_name | Port name |
idx | Index in the case of a VectorPort |
Reimplemented from gem5::SimObject.
Definition at line 858 of file compute_unit.hh.
References gem5::SimObject::getPort(), gmTokenPort, ldsPort, memPort, scalarDataPort, scalarDTLBPort, sqcPort, sqcTLBPort, and tlbPort.
int32_t gem5::ComputeUnit::getRefCounter | ( | const uint32_t | dispatchId, |
const uint32_t | wgId | ||
) | const |
Definition at line 1969 of file compute_unit.cc.
References gem5::LdsState::getRefCounter(), and lds.
|
inline |
Definition at line 837 of file compute_unit.hh.
References memPortTokens.
Referenced by gem5::LocalMemPipeline::exec(), gem5::GlobalMemPipeline::exec(), and gem5::Wavefront::exec().
void gem5::ComputeUnit::handleMemPacket | ( | PacketPtr | pkt, |
int | memport_index | ||
) |
bool gem5::ComputeUnit::hasDispResources | ( | HSAQueueEntry * | task, |
int & | num_wfs_in_wg | ||
) |
Definition at line 519 of file compute_unit.cc.
References gem5::RegisterManager::canAllocateSgprs(), gem5::RegisterManager::canAllocateVgprs(), gem5::LdsState::canReserve(), gem5::ArmISA::d, DPRINTF, freeBarrierIds, gem5::HSAQueueEntry::gridSize(), gem5::ArmISA::i, gem5::ArmISA::j, lds, gem5::HSAQueueEntry::ldsSize(), gem5::HSAQueueEntry::MAX_DIM, gem5::Shader::n_wf, gem5::HSAQueueEntry::numScalarRegs(), numScalarRegsPerSimd, gem5::ComputeUnit::ComputeUnitStats::numTimesWgBlockedDueSgprAlloc, gem5::ComputeUnit::ComputeUnitStats::numTimesWgBlockedDueVgprAlloc, numVecRegsPerSimd, numVectorALUs, gem5::HSAQueueEntry::numVectorRegs(), numWfsToSched, panic_if, registerManager, gem5::Wavefront::S_STOPPED, shader, stats, wfList, wfSize(), gem5::ComputeUnit::ComputeUnitStats::wgBlockedDueBarrierAllocation, gem5::ComputeUnit::ComputeUnitStats::wgBlockedDueLdsAllocation, gem5::HSAQueueEntry::wgId(), and gem5::HSAQueueEntry::wgSize().
void gem5::ComputeUnit::incNumAtBarrier | ( | int | bar_id | ) |
Definition at line 661 of file compute_unit.cc.
References barrierSlot().
Referenced by gem5::Gcn3ISA::Inst_SOPP__S_BARRIER::execute(), and gem5::VegaISA::Inst_SOPP__S_BARRIER::execute().
|
overridevirtual |
init() is called after all C++ SimObjects have been created and all ports are connected.
Initializations that are independent of unserialization but rely on a fully instantiated and connected SimObject graph should be done here.
Reimplemented from gem5::SimObject.
Definition at line 752 of file compute_unit.cc.
References gem5::Clocked::clockPeriod(), execStage, fatal_if, fetchStage, glbMemToVrfBus, globalMemoryPipe, gmTokenPort, gem5::ArmISA::i, gem5::FetchStage::init(), gem5::GlobalMemPipeline::init(), gem5::ScheduleStage::init(), gem5::WaitClass::init(), gem5::ExecStage::init(), locMemToVrfBus, memPortTokens, numScalarALUs, numScalarMemUnits, numVectorALUs, numVectorGlobalMemUnits, numVectorSharedMemUnits, scalarALUs, scalarMemToSrfBus, scalarMemUnit, scalarRegsReserved, scheduleStage, gem5::TokenRequestPort::setTokenManager(), srfToScalarMemPipeBus, vectorALUs, vectorGlobalMemUnit, vectorRegsReserved, vectorSharedMemUnit, vrfToGlobalMemPipeBus, and vrfToLocalMemPipeBus.
void gem5::ComputeUnit::initiateFetch | ( | Wavefront * | wavefront | ) |
void gem5::ComputeUnit::injectGlobalMemFence | ( | GPUDynInstPtr | gpuDynInst, |
bool | kernelMemSync, | ||
RequestPtr | req = nullptr |
||
) |
Definition at line 1229 of file compute_unit.cc.
References cu_id, gem5::curTick(), DPRINTF, gem5::Request::FLUSH_L2, gem5::Shader::impl_kern_end_rel, gem5::Request::INV_L1, gem5::Request::KERNEL, memPort, gem5::MemCmd::MemSyncReq, gem5::Packet::pushSenderState(), gem5::Packet::req, req_tick_latency, requestorId(), gem5::EventManager::schedule(), and shader.
Referenced by doFlush(), and doInvalidate().
void gem5::ComputeUnit::insertInPipeMap | ( | Wavefront * | w | ) |
Definition at line 498 of file compute_unit.cc.
References panic_if, pipeMap, and gem5::MipsISA::w.
Referenced by gem5::ScheduleStage::addToSchList().
bool gem5::ComputeUnit::isDone | ( | ) | const |
Definition at line 1939 of file compute_unit.cc.
References glbMemToVrfBus, globalMemoryPipe, gem5::ArmISA::i, gem5::GlobalMemPipeline::isGMReqFIFOWrRdy(), gem5::LocalMemPipeline::isLMReqFIFOWrRdy(), gem5::LocalMemPipeline::isLMRespFIFOWrRdy(), isVectorAluIdle(), localMemoryPipe, locMemToVrfBus, numVectorALUs, gem5::WaitClass::rdy(), scalarMemToSrfBus, srfToScalarMemPipeBus, vrfToGlobalMemPipeBus, and vrfToLocalMemPipeBus.
Referenced by exec().
bool gem5::ComputeUnit::isVectorAluIdle | ( | uint32_t | simdId | ) | const |
Definition at line 1976 of file compute_unit.cc.
References gem5::Shader::n_wf, numVectorALUs, gem5::Wavefront::S_STOPPED, shader, and wfList.
Referenced by isDone().
int gem5::ComputeUnit::lastMemUnit | ( | ) | const |
Definition at line 246 of file compute_unit.cc.
References numExeUnits().
Referenced by gem5::ScheduleStage::exec().
|
inline |
Definition at line 393 of file compute_unit.hh.
References numCyclesPerLoadTransfer.
Referenced by gem5::LdsState::processPacket().
int gem5::ComputeUnit::mapWaveToGlobalMem | ( | Wavefront * | w | ) | const |
Definition at line 271 of file compute_unit.cc.
References numScalarALUs, and numVectorALUs.
Referenced by gem5::Wavefront::init().
int gem5::ComputeUnit::mapWaveToLocalMem | ( | Wavefront * | w | ) | const |
Definition at line 279 of file compute_unit.cc.
References numScalarALUs, numVectorALUs, and numVectorGlobalMemUnits.
Referenced by gem5::Wavefront::init().
int gem5::ComputeUnit::mapWaveToScalarAlu | ( | Wavefront * | w | ) | const |
Definition at line 253 of file compute_unit.cc.
References numScalarALUs, and gem5::MipsISA::w.
Referenced by gem5::Wavefront::init(), and mapWaveToScalarAluGlobalIdx().
int gem5::ComputeUnit::mapWaveToScalarAluGlobalIdx | ( | Wavefront * | w | ) | const |
Definition at line 264 of file compute_unit.cc.
References mapWaveToScalarAlu(), numVectorALUs, and gem5::MipsISA::w.
Referenced by gem5::Wavefront::init().
int gem5::ComputeUnit::mapWaveToScalarMem | ( | Wavefront * | w | ) | const |
Definition at line 287 of file compute_unit.cc.
References numScalarALUs, numVectorALUs, numVectorGlobalMemUnits, and numVectorSharedMemUnits.
Referenced by gem5::Wavefront::init().
int gem5::ComputeUnit::maxBarrierCnt | ( | int | bar_id | ) |
Definition at line 675 of file compute_unit.cc.
References barrierSlot().
Referenced by gem5::Gcn3ISA::Inst_SOPP__S_ENDPGM::execute(), and gem5::VegaISA::Inst_SOPP__S_ENDPGM::execute().
int gem5::ComputeUnit::numAtBarrier | ( | int | bar_id | ) |
Definition at line 668 of file compute_unit.cc.
References barrierSlot().
Referenced by gem5::Gcn3ISA::Inst_SOPP__S_BARRIER::execute(), and gem5::VegaISA::Inst_SOPP__S_BARRIER::execute().
|
inline |
Definition at line 444 of file compute_unit.hh.
References _numBarrierSlots.
int gem5::ComputeUnit::numExeUnits | ( | ) | const |
Definition at line 231 of file compute_unit.cc.
References numScalarALUs, numScalarMemUnits, numVectorALUs, numVectorGlobalMemUnits, and numVectorSharedMemUnits.
Referenced by gem5::ScheduleStage::checkRfOperandReadComplete(), gem5::ExecStage::dumpDispList(), gem5::ScheduleStage::exec(), gem5::ExecStage::exec(), gem5::ExecStage::ExecStageStats::ExecStageStats(), gem5::ScheduleStage::fillDispatchList(), gem5::ScheduleStage::init(), lastMemUnit(), gem5::ScoreboardCheckStage::mapWaveToExeUnit(), gem5::ScheduleStage::reserveResources(), gem5::ScheduleStage::scheduleRfDestOperands(), and gem5::ScheduleStage::ScheduleStage().
int gem5::ComputeUnit::numYetToReachBarrier | ( | int | bar_id | ) |
Definition at line 647 of file compute_unit.cc.
References barrierSlot().
Referenced by gem5::Gcn3ISA::Inst_SOPP__S_BARRIER::execute(), and gem5::VegaISA::Inst_SOPP__S_BARRIER::execute().
|
inline |
Definition at line 387 of file compute_unit.hh.
References operandNetworkLength.
void gem5::ComputeUnit::processFetchReturn | ( | PacketPtr | pkt | ) |
bool gem5::ComputeUnit::processTimingPacket | ( | PacketPtr | pkt | ) |
void gem5::ComputeUnit::releaseBarrier | ( | int | bar_id | ) |
Definition at line 696 of file compute_unit.cc.
References barrierSlot(), and freeBarrierIds.
Referenced by gem5::Gcn3ISA::Inst_SOPP__S_ENDPGM::execute(), and gem5::VegaISA::Inst_SOPP__S_ENDPGM::execute().
void gem5::ComputeUnit::releaseWFsFromBarrier | ( | int | bar_id | ) |
Definition at line 704 of file compute_unit.cc.
References gem5::Wavefront::barrierId(), gem5::Wavefront::getStatus(), gem5::ArmISA::i, gem5::ArmISA::j, gem5::Shader::n_wf, numVectorALUs, gem5::Wavefront::S_BARRIER, gem5::Wavefront::S_RUNNING, gem5::Wavefront::setStatus(), shader, and wfList.
Referenced by gem5::ScoreboardCheckStage::ready().
|
inline |
Definition at line 460 of file compute_unit.hh.
References _requestorId.
Referenced by gem5::FetchUnit::initiateFetch(), and injectGlobalMemFence().
void gem5::ComputeUnit::resetBarrier | ( | int | bar_id | ) |
Definition at line 682 of file compute_unit.cc.
References barrierSlot().
Referenced by gem5::ScoreboardCheckStage::ready().
void gem5::ComputeUnit::resetRegisterPool | ( | ) |
Definition at line 410 of file compute_unit.cc.
References gem5::ArmISA::i, numScalarRegsPerSimd, numVecRegsPerSimd, numVectorALUs, registerManager, gem5::RegisterManager::srfPoolMgrs, and gem5::RegisterManager::vrfPoolMgrs.
|
inline |
Definition at line 391 of file compute_unit.hh.
References scalarPipeStages.
Referenced by gem5::ScalarRegisterFile::waveExecuteInst().
void gem5::ComputeUnit::sendRequest | ( | GPUDynInstPtr | gpuDynInst, |
PortID | index, | ||
PacketPtr | pkt | ||
) |
Definition at line 1009 of file compute_unit.cc.
References gem5::Packet::cmd, cu_id, gem5::curTick(), gem5::Packet::dataStatic(), debugSegFault, DPRINTF, gem5::GPUCommandProcessor::driver(), fatal, functionalTLB, gem5::Packet::getAddr(), gem5::ThreadContext::getProcessPtr(), gem5::Packet::getPtr(), gem5::Packet::getSize(), gem5::Shader::gpuCmdProc, gem5::Shader::gpuTc, gem5::X86ISA::GpuTLB::TranslationState::hitLevel, gem5::ComputeUnit::ComputeUnitStats::hitsPerTLBLevel, gem5::MipsISA::index, gem5::Packet::isRead(), gem5::Packet::isWrite(), memPort, gem5::MemCmd::MemSyncReq, gem5::MipsISA::p, panic, perLaneTLB, gem5::BaseMMU::Read, gem5::Packet::req, req_tick_latency, gem5::X86ISA::GpuTLB::TranslationState::saved, gem5::EventManager::schedule(), gem5::Packet::senderState, gem5::GPUComputeDriver::setMtype(), shader, stats, gem5::Shader::timingSim, gem5::ComputeUnit::ComputeUnitStats::tlbCycles, gem5::X86ISA::GpuTLB::TranslationState::tlbEntry, tlbPort, gem5::ComputeUnit::ComputeUnitStats::tlbRequests, updatePageDivergenceDist(), gem5::MipsISA::vaddr, and gem5::BaseMMU::Write.
void gem5::ComputeUnit::sendScalarRequest | ( | GPUDynInstPtr | gpuDynInst, |
PacketPtr | pkt | ||
) |
Definition at line 1202 of file compute_unit.cc.
References DPRINTF, gem5::Shader::gpuTc, gem5::Packet::isRead(), gem5::ComputeUnit::ScalarDTLBPort::isStalled(), gem5::Packet::isWrite(), gem5::BaseMMU::Read, gem5::Packet::req, gem5::ComputeUnit::ScalarDTLBPort::retries, scalarDTLBPort, gem5::Packet::senderState, gem5::RequestPort::sendTimingReq(), shader, gem5::ComputeUnit::ScalarDTLBPort::stallPort(), and gem5::BaseMMU::Write.
bool gem5::ComputeUnit::sendToLds | ( | GPUDynInstPtr | gpuDynInst | ) |
send a general request to the LDS make sure to look at the return value here as your request might be NACK'd and returning false means that you have to have some backup plan
Definition at line 1995 of file compute_unit.cc.
References ldsPort, gem5::MemCmd::ReadReq, gem5::Packet::senderState, and gem5::ComputeUnit::LDSPort::sendTimingReq().
Referenced by gem5::LocalMemPipeline::exec().
|
inline |
Definition at line 388 of file compute_unit.hh.
References simdWidth.
|
inline |
Definition at line 389 of file compute_unit.hh.
References spBypassPipeLength.
void gem5::ComputeUnit::startWavefront | ( | Wavefront * | w, |
int | waveId, | ||
LdsChunk * | ldsChunk, | ||
HSAQueueEntry * | task, | ||
int | bar_id, | ||
bool | fetchContext = false |
||
) |
Definition at line 309 of file compute_unit.cc.
References activeWaves, gem5::HSAQueueEntry::codeAddr(), cu_id, gem5::HSAQueueEntry::dispatchId(), DPRINTF, gem5::HSAQueueEntry::globalWgId(), gem5::LdsState::increaseRefCounter(), gem5::WFBarrier::InvalidID, gem5::MipsISA::k, lds, gem5::HSAQueueEntry::numWg(), gem5::statistics::DistBase< Derived, Stor >::sample(), stats, gem5::MipsISA::w, gem5::ComputeUnit::ComputeUnitStats::waveLevelParallelism, and wfSize().
Referenced by dispWorkgroup().
|
inline |
Definition at line 392 of file compute_unit.hh.
References numCyclesPerStoreTransfer.
Referenced by gem5::LdsState::processPacket().
void gem5::ComputeUnit::updateInstStats | ( | GPUDynInstPtr | gpuDynInst | ) |
this case can occur for flat mem insts who execute with EXEC = 0
this case can occur for flat mem insts who execute with EXEC = 0
Definition at line 1803 of file compute_unit.cc.
References gem5::ComputeUnit::ComputeUnitStats::argReads, gem5::ComputeUnit::ComputeUnitStats::argWrites, gem5::exitSimLoop(), fatal, gem5::ComputeUnit::ComputeUnitStats::flatLDSInsts, gem5::ComputeUnit::ComputeUnitStats::flatVMemInsts, gem5::ComputeUnit::ComputeUnitStats::globalReads, gem5::ComputeUnit::ComputeUnitStats::globalWrites, gem5::ComputeUnit::ComputeUnitStats::groupReads, gem5::ComputeUnit::ComputeUnitStats::groupWrites, gem5::ComputeUnit::ComputeUnitStats::instCyclesSALU, gem5::ComputeUnit::ComputeUnitStats::instCyclesVALU, gem5::ComputeUnit::ComputeUnitStats::kernargReads, gem5::ComputeUnit::ComputeUnitStats::kernargWrites, gem5::ComputeUnit::ComputeUnitStats::ldsNoFlatInsts, gem5::Shader::max_valu_insts, gem5::ComputeUnit::ComputeUnitStats::privReads, gem5::ComputeUnit::ComputeUnitStats::privWrites, gem5::ComputeUnit::ComputeUnitStats::readonlyReads, gem5::ComputeUnit::ComputeUnitStats::readonlyWrites, gem5::ComputeUnit::ComputeUnitStats::sALUInsts, sc_core::SC_NONE, gem5::ComputeUnit::ComputeUnitStats::scalarMemReads, gem5::ComputeUnit::ComputeUnitStats::scalarMemWrites, shader, gem5::ComputeUnit::ComputeUnitStats::spillReads, gem5::ComputeUnit::ComputeUnitStats::spillWrites, stats, gem5::ComputeUnit::ComputeUnitStats::threadCyclesVALU, gem5::Shader::total_valu_insts, gem5::ComputeUnit::ComputeUnitStats::vALUInsts, gem5::ComputeUnit::ComputeUnitStats::vectorMemReads, and gem5::ComputeUnit::ComputeUnitStats::vectorMemWrites.
Referenced by gem5::Wavefront::exec().
void gem5::ComputeUnit::updatePageDivergenceDist | ( | Addr | addr | ) |
Definition at line 1911 of file compute_unit.cc.
References gem5::X86ISA::addr, gem5::X86ISA::PageBytes, pagesTouched, and gem5::roundDown().
Referenced by sendRequest().
|
inline |
Definition at line 394 of file compute_unit.hh.
References wavefrontSize.
Referenced by gem5::ComputeUnit::ComputeUnitStats::ComputeUnitStats(), gem5::LdsState::countBankConflicts(), gem5::GPUDynInst::doApertureCheck(), gem5::GPUDynInst::GPUDynInst(), hasDispResources(), gem5::Wavefront::initRegState(), gem5::GPUDynInst::resolveFlatSegment(), and startWavefront().
|
private |
Definition at line 884 of file compute_unit.hh.
Referenced by cacheLineSize().
|
private |
Definition at line 885 of file compute_unit.hh.
Referenced by numBarrierSlots().
|
protected |
Definition at line 466 of file compute_unit.hh.
Referenced by requestorId().
int gem5::ComputeUnit::activeWaves |
Definition at line 941 of file compute_unit.hh.
Referenced by gem5::Gcn3ISA::Inst_SOPP__S_ENDPGM::execute(), gem5::VegaISA::Inst_SOPP__S_ENDPGM::execute(), and startWavefront().
|
private |
Definition at line 886 of file compute_unit.hh.
Referenced by getCacheLineBits().
int gem5::ComputeUnit::coalescerToVrfBusWidth |
Definition at line 269 of file compute_unit.hh.
bool gem5::ComputeUnit::countPages |
Definition at line 351 of file compute_unit.hh.
Referenced by exitCallback().
int gem5::ComputeUnit::cu_id |
Definition at line 292 of file compute_unit.hh.
Referenced by gem5::GPUDynInst::completeAcc(), dispWorkgroup(), gem5::ScalarMemPipeline::exec(), gem5::GlobalMemPipeline::exec(), gem5::Wavefront::exec(), exec(), gem5::VegaISA::Inst_SOPP__S_ENDPGM::execute(), gem5::Gcn3ISA::Inst_SOPP__S_ENDPGM::execute(), gem5::Gcn3ISA::Inst_SOPP__S_BARRIER::execute(), gem5::VegaISA::Inst_SOPP__S_BARRIER::execute(), gem5::FetchUnit::fetch(), gem5::GPUDynInst::GPUDynInst(), gem5::GPUDynInst::initiateAcc(), gem5::FetchUnit::initiateFetch(), gem5::Wavefront::initRegState(), injectGlobalMemFence(), gem5::GPUDispatcher::notifyWgCompl(), gem5::ComputeUnit::ScalarDataPort::MemReqEvent::process(), gem5::FetchUnit::processFetchReturn(), gem5::ComputeUnit::DataPort::processMemReqEvent(), gem5::ComputeUnit::DataPort::processMemRespEvent(), gem5::ScoreboardCheckStage::ready(), gem5::ComputeUnit::DataPort::recvTimingResp(), sendRequest(), gem5::Wavefront::setStatus(), and startWavefront().
bool gem5::ComputeUnit::debugSegFault |
Definition at line 341 of file compute_unit.hh.
Referenced by sendRequest().
int gem5::ComputeUnit::dpBypassPipeLength |
Definition at line 307 of file compute_unit.hh.
Referenced by dpBypassLength().
EXEC_POLICY gem5::ComputeUnit::exec_policy |
Definition at line 339 of file compute_unit.hh.
ExecStage gem5::ComputeUnit::execStage |
Definition at line 283 of file compute_unit.hh.
FetchStage gem5::ComputeUnit::fetchStage |
Definition at line 280 of file compute_unit.hh.
Referenced by gem5::Wavefront::discardFetch(), exec(), gem5::VegaISA::Inst_SOPP__S_ENDPGM::execute(), gem5::Gcn3ISA::Inst_SOPP__S_ENDPGM::execute(), and init().
|
private |
A set used to easily retrieve a free barrier ID.
Definition at line 932 of file compute_unit.hh.
Referenced by getFreeBarrierId(), hasDispResources(), and releaseBarrier().
bool gem5::ComputeUnit::functionalTLB |
Definition at line 345 of file compute_unit.hh.
Referenced by sendRequest().
WaitClass gem5::ComputeUnit::glbMemToVrfBus |
Definition at line 221 of file compute_unit.hh.
Referenced by gem5::GlobalMemPipeline::exec(), init(), and isDone().
GlobalMemPipeline gem5::ComputeUnit::globalMemoryPipe |
Definition at line 284 of file compute_unit.hh.
Referenced by gem5::ScheduleStage::dispatchReady(), exec(), gem5::ScheduleStage::fillDispatchList(), init(), isDone(), gem5::ComputeUnit::DataPort::processMemRespEvent(), and gem5::ComputeUnit::DataPort::recvTimingResp().
|
private |
Definition at line 887 of file compute_unit.hh.
Referenced by getAndIncSeqNum().
GMTokenPort gem5::ComputeUnit::gmTokenPort |
Definition at line 505 of file compute_unit.hh.
|
private |
Definition at line 937 of file compute_unit.hh.
Referenced by gem5::ComputeUnit::DataPort::processMemRespEvent().
Tick gem5::ComputeUnit::idleCUTimeout |
Definition at line 343 of file compute_unit.hh.
Referenced by gem5::Wavefront::setStatus().
int gem5::ComputeUnit::idleWfs |
Definition at line 344 of file compute_unit.hh.
Referenced by gem5::Wavefront::setStatus().
std::vector<uint64_t> gem5::ComputeUnit::instExecPerSimd |
Definition at line 326 of file compute_unit.hh.
Referenced by gem5::Wavefront::exec().
Cycles gem5::ComputeUnit::issuePeriod |
Definition at line 313 of file compute_unit.hh.
Referenced by gem5::Wavefront::exec().
std::vector<uint64_t> gem5::ComputeUnit::lastExecCycle |
Definition at line 323 of file compute_unit.hh.
Referenced by gem5::Wavefront::exec().
std::vector<Addr> gem5::ComputeUnit::lastVaddrCU |
Definition at line 335 of file compute_unit.hh.
Referenced by ~ComputeUnit().
std::vector<std::vector<Addr> > gem5::ComputeUnit::lastVaddrSimd |
Definition at line 336 of file compute_unit.hh.
Referenced by ~ComputeUnit().
std::vector<std::vector<std::vector<Addr> > > gem5::ComputeUnit::lastVaddrWF |
Definition at line 337 of file compute_unit.hh.
|
protected |
Definition at line 468 of file compute_unit.hh.
Referenced by dispWorkgroup(), getLds(), getRefCounter(), hasDispResources(), and startWavefront().
LDSPort gem5::ComputeUnit::ldsPort |
The port to access the Local Data Store Can be connected to a LDS object.
Definition at line 834 of file compute_unit.hh.
Referenced by getPort(), and sendToLds().
bool gem5::ComputeUnit::localMemBarrier |
Definition at line 346 of file compute_unit.hh.
LocalMemPipeline gem5::ComputeUnit::localMemoryPipe |
Definition at line 285 of file compute_unit.hh.
Referenced by gem5::ScheduleStage::dispatchReady(), exec(), and isDone().
WaitClass gem5::ComputeUnit::locMemToVrfBus |
Definition at line 229 of file compute_unit.hh.
Referenced by gem5::LocalMemPipeline::exec(), init(), and isDone().
std::vector<DataPort> gem5::ComputeUnit::memPort |
The memory port for SIMD data accesses.
Can be connected to PhysMem for Ruby for timing simulations
Definition at line 845 of file compute_unit.hh.
Referenced by getPort(), injectGlobalMemFence(), gem5::ComputeUnit::DataPort::recvTimingResp(), and sendRequest().
TokenManager* gem5::ComputeUnit::memPortTokens |
Definition at line 504 of file compute_unit.hh.
Referenced by getTokenManager(), and init().
int gem5::ComputeUnit::numCyclesPerLoadTransfer |
Definition at line 271 of file compute_unit.hh.
Referenced by loadBusLength().
int gem5::ComputeUnit::numCyclesPerStoreTransfer |
Definition at line 270 of file compute_unit.hh.
Referenced by storeBusLength().
int gem5::ComputeUnit::numScalarALUs |
Definition at line 248 of file compute_unit.hh.
Referenced by gem5::ExecStage::ExecStageStats::ExecStageStats(), firstMemUnit(), init(), mapWaveToGlobalMem(), mapWaveToLocalMem(), mapWaveToScalarAlu(), mapWaveToScalarMem(), and numExeUnits().
int gem5::ComputeUnit::numScalarMemUnits |
Definition at line 235 of file compute_unit.hh.
Referenced by init(), and numExeUnits().
int gem5::ComputeUnit::numScalarRegsPerSimd |
Definition at line 373 of file compute_unit.hh.
Referenced by gem5::StaticRegisterManagerPolicy::allocateRegisters(), hasDispResources(), and resetRegisterPool().
int gem5::ComputeUnit::numVecRegsPerSimd |
Definition at line 371 of file compute_unit.hh.
Referenced by gem5::StaticRegisterManagerPolicy::allocateRegisters(), hasDispResources(), and resetRegisterPool().
int gem5::ComputeUnit::numVectorALUs |
Definition at line 244 of file compute_unit.hh.
Referenced by gem5::ComputeUnit::ComputeUnitStats::ComputeUnitStats(), dispWorkgroup(), gem5::ScoreboardCheckStage::exec(), gem5::ExecStage::ExecStageStats::ExecStageStats(), firstMemUnit(), hasDispResources(), init(), isDone(), isVectorAluIdle(), mapWaveToGlobalMem(), mapWaveToLocalMem(), mapWaveToScalarAluGlobalIdx(), mapWaveToScalarMem(), numExeUnits(), releaseWFsFromBarrier(), resetRegisterPool(), gem5::Wavefront::setStatus(), and ~ComputeUnit().
int gem5::ComputeUnit::numVectorGlobalMemUnits |
Definition at line 219 of file compute_unit.hh.
Referenced by gem5::ScheduleStage::arbitrateVrfToLdsBus(), gem5::ScheduleStage::init(), init(), mapWaveToLocalMem(), mapWaveToScalarMem(), and numExeUnits().
int gem5::ComputeUnit::numVectorSharedMemUnits |
Definition at line 227 of file compute_unit.hh.
Referenced by gem5::ScheduleStage::init(), init(), mapWaveToScalarMem(), and numExeUnits().
std::vector<int> gem5::ComputeUnit::numWfsToSched |
Number of WFs to schedule to each SIMD.
This vector is populated by hasDispResources(), and consumed by the subsequent call to dispWorkgroup(), to schedule the specified number of WFs to the SIMD units. Entry I provides the number of WFs to schedule to SIMD I.
Definition at line 364 of file compute_unit.hh.
Referenced by dispWorkgroup(), and hasDispResources().
int gem5::ComputeUnit::operandNetworkLength |
Definition at line 311 of file compute_unit.hh.
Referenced by oprNetPipeLength().
pageDataStruct gem5::ComputeUnit::pageAccesses |
Definition at line 483 of file compute_unit.hh.
Referenced by exitCallback(), and gem5::GPUDynInst::updateStats().
std::map<Addr, int> gem5::ComputeUnit::pagesTouched |
Definition at line 378 of file compute_unit.hh.
Referenced by updatePageDivergenceDist(), and gem5::GPUDynInst::updateStats().
bool gem5::ComputeUnit::perLaneTLB |
Definition at line 329 of file compute_unit.hh.
Referenced by sendRequest().
std::unordered_set<uint64_t> gem5::ComputeUnit::pipeMap |
Definition at line 276 of file compute_unit.hh.
Referenced by deleteFromPipeMap(), insertInPipeMap(), and gem5::Wavefront::nextInstr().
int gem5::ComputeUnit::prefetchDepth |
Definition at line 331 of file compute_unit.hh.
int gem5::ComputeUnit::prefetchStride |
Definition at line 333 of file compute_unit.hh.
enums::PrefetchType gem5::ComputeUnit::prefetchType |
Definition at line 338 of file compute_unit.hh.
RegisterManager* gem5::ComputeUnit::registerManager |
Definition at line 278 of file compute_unit.hh.
Referenced by gem5::StaticRegisterManagerPolicy::allocateRegisters(), gem5::StaticRegisterManagerPolicy::canAllocateSgprs(), gem5::StaticRegisterManagerPolicy::canAllocateVgprs(), dispWorkgroup(), gem5::Gcn3ISA::Inst_SOPP__S_ENDPGM::execute(), gem5::VegaISA::Inst_SOPP__S_ENDPGM::execute(), gem5::Wavefront::freeRegisterFile(), hasDispResources(), gem5::GPUStaticInst::initDynOperandInfo(), gem5::Wavefront::initRegState(), gem5::Gcn3ISA::VecOperand< DataType, Const, NumDwords >::read(), gem5::VegaISA::VecOperand< DataType, Const, NumDwords >::read(), gem5::VegaISA::ScalarOperand< DataType, Const, sizeof(DataType)/sizeof(VecElemU32) >::regIdx(), gem5::Gcn3ISA::ScalarOperand< DataType, Const, sizeof(DataType)/sizeof(VecElemU32) >::regIdx(), resetRegisterPool(), gem5::GPUDynInst::resolveFlatSegment(), gem5::Gcn3ISA::VecOperand< DataType, Const, NumDwords >::write(), and gem5::VegaISA::VecOperand< DataType, Const, NumDwords >::write().
Tick gem5::ComputeUnit::req_tick_latency |
Definition at line 355 of file compute_unit.hh.
Referenced by injectGlobalMemFence(), and sendRequest().
Tick gem5::ComputeUnit::resp_tick_latency |
Definition at line 356 of file compute_unit.hh.
Referenced by gem5::ComputeUnit::DataPort::recvTimingResp().
std::vector<WaitClass> gem5::ComputeUnit::scalarALUs |
Definition at line 249 of file compute_unit.hh.
Referenced by gem5::ScheduleStage::dispatchReady(), gem5::Wavefront::exec(), and init().
ScalarDataPort gem5::ComputeUnit::scalarDataPort |
Definition at line 849 of file compute_unit.hh.
Referenced by getPort(), and gem5::ComputeUnit::ScalarDataPort::MemReqEvent::process().
ScalarDTLBPort gem5::ComputeUnit::scalarDTLBPort |
Definition at line 851 of file compute_unit.hh.
Referenced by getPort(), and sendScalarRequest().
ScalarMemPipeline gem5::ComputeUnit::scalarMemoryPipe |
Definition at line 286 of file compute_unit.hh.
Referenced by gem5::ScheduleStage::dispatchReady(), and exec().
WaitClass gem5::ComputeUnit::scalarMemToSrfBus |
Definition at line 237 of file compute_unit.hh.
Referenced by gem5::ScalarMemPipeline::exec(), init(), and isDone().
WaitClass gem5::ComputeUnit::scalarMemUnit |
Definition at line 241 of file compute_unit.hh.
Referenced by gem5::ScheduleStage::checkMemResources(), gem5::ScalarMemPipeline::exec(), gem5::Wavefront::exec(), and init().
int gem5::ComputeUnit::scalarPipeStages |
Definition at line 309 of file compute_unit.hh.
Referenced by scalarPipeLength().
std::vector<int> gem5::ComputeUnit::scalarRegsReserved |
Definition at line 369 of file compute_unit.hh.
Referenced by gem5::StaticRegisterManagerPolicy::allocateRegisters(), and init().
ScheduleStage gem5::ComputeUnit::scheduleStage |
Definition at line 282 of file compute_unit.hh.
Referenced by gem5::ExecStage::exec(), exec(), and init().
|
private |
Definition at line 923 of file compute_unit.hh.
ScoreboardCheckStage gem5::ComputeUnit::scoreboardCheckStage |
Definition at line 281 of file compute_unit.hh.
Referenced by exec().
|
private |
TODO: Update these comments once the pipe stage interface has been fully refactored.
Pipeline stage interfaces.
Buffers used to communicate between various pipeline stages List of waves which will be dispatched to each execution resource. An EXREADY implies dispatch list is non-empty and execution unit has something to execute this cycle. Currently, the dispatch list of an execution resource can hold only one wave because an execution resource can execute only one wave in a cycle. dispatchList is used to communicate between schedule and exec stage
At a high level, the following intra-/inter-stage communication occurs: SCB to SCH: readyList provides per exec resource list of waves that passed dependency and readiness checks. If selected by scheduler, attempt to add wave to schList conditional on RF support. SCH: schList holds waves that are gathering operands or waiting for execution resource availability. Once ready, waves are placed on the dispatchList as candidates for execution. A wave may spend multiple cycles in SCH stage, on the schList due to RF access conflicts or execution resource contention. SCH to EX: dispatchList holds waves that are ready to be executed. LM/FLAT arbitration may remove an LM wave and place it back on the schList. RF model may also force a wave back to the schList if using the detailed model.
Definition at line 922 of file compute_unit.hh.
Shader* gem5::ComputeUnit::shader |
Definition at line 353 of file compute_unit.hh.
Referenced by dispWorkgroup(), gem5::GPUDynInst::doApertureCheck(), gem5::FetchUnit::exec(), gem5::LocalMemPipeline::exec(), gem5::ScalarMemPipeline::exec(), gem5::GlobalMemPipeline::exec(), gem5::ScoreboardCheckStage::exec(), gem5::Wavefront::exec(), exec(), gem5::Gcn3ISA::Inst_SOPP__S_ENDPGM::execute(), gem5::VegaISA::Inst_SOPP__S_ENDPGM::execute(), hasDispResources(), gem5::FetchUnit::init(), gem5::GlobalMemPipeline::init(), gem5::FetchUnit::initiateFetch(), gem5::Wavefront::initRegState(), injectGlobalMemFence(), isVectorAluIdle(), gem5::ComputeUnit::DataPort::recvTimingResp(), releaseWFsFromBarrier(), gem5::GPUDynInst::resolveFlatSegment(), sendRequest(), sendScalarRequest(), gem5::Wavefront::setStatus(), updateInstStats(), and ~ComputeUnit().
int gem5::ComputeUnit::simdWidth |
Definition at line 301 of file compute_unit.hh.
Referenced by simdUnitWidth().
int gem5::ComputeUnit::spBypassPipeLength |
Definition at line 304 of file compute_unit.hh.
Referenced by spBypassLength().
SQCPort gem5::ComputeUnit::sqcPort |
Definition at line 853 of file compute_unit.hh.
Referenced by gem5::FetchUnit::fetch(), and getPort().
ITLBPort gem5::ComputeUnit::sqcTLBPort |
Definition at line 855 of file compute_unit.hh.
Referenced by getPort(), and gem5::FetchUnit::initiateFetch().
std::vector<ScalarRegisterFile*> gem5::ComputeUnit::srf |
Definition at line 297 of file compute_unit.hh.
Referenced by gem5::ScheduleStage::addToSchList(), gem5::ScheduleStage::checkRfOperandReadComplete(), gem5::Wavefront::exec(), exec(), gem5::Wavefront::initRegState(), gem5::Gcn3ISA::ScalarOperand< DataType, Const, sizeof(DataType)/sizeof(VecElemU32) >::read(), gem5::VegaISA::ScalarOperand< DataType, Const, sizeof(DataType)/sizeof(VecElemU32) >::read(), gem5::ScoreboardCheckStage::ready(), gem5::ScheduleStage::reserveResources(), gem5::GPUDynInst::resolveFlatSegment(), gem5::ScheduleStage::schedRfWrites(), gem5::RegisterManager::setParent(), gem5::Gcn3ISA::ScalarOperand< DataType, Const, sizeof(DataType)/sizeof(VecElemU32) >::write(), and gem5::VegaISA::ScalarOperand< DataType, Const, sizeof(DataType)/sizeof(VecElemU32) >::write().
Cycles gem5::ComputeUnit::srf_scm_bus_latency |
Definition at line 318 of file compute_unit.hh.
Referenced by gem5::Wavefront::exec().
WaitClass gem5::ComputeUnit::srfToScalarMemPipeBus |
Definition at line 239 of file compute_unit.hh.
Referenced by gem5::ScheduleStage::checkMemResources(), gem5::Wavefront::exec(), init(), and isDone().
gem5::ComputeUnit::ComputeUnitStats gem5::ComputeUnit::stats |
Referenced by gem5::Wavefront::exec(), exec(), gem5::AtomicOpCAS< T >::execute(), gem5::Gcn3ISA::Inst_SOPP__S_ENDPGM::execute(), gem5::VegaISA::Inst_SOPP__S_ENDPGM::execute(), hasDispResources(), gem5::ComputeUnit::DataPort::processMemRespEvent(), gem5::LdsState::processPacket(), sendRequest(), startWavefront(), updateInstStats(), and gem5::GPUDynInst::updateStats().
EventFunctionWrapper gem5::ComputeUnit::tickEvent |
Definition at line 288 of file compute_unit.hh.
Referenced by dispWorkgroup(), and exec().
std::vector<DTLBPort> gem5::ComputeUnit::tlbPort |
Definition at line 847 of file compute_unit.hh.
Referenced by getPort(), and sendRequest().
std::vector<WaitClass> gem5::ComputeUnit::vectorALUs |
Definition at line 245 of file compute_unit.hh.
Referenced by gem5::ScheduleStage::dispatchReady(), gem5::Wavefront::exec(), and init().
WaitClass gem5::ComputeUnit::vectorGlobalMemUnit |
Definition at line 225 of file compute_unit.hh.
Referenced by gem5::ScheduleStage::checkMemResources(), gem5::GlobalMemPipeline::exec(), gem5::Wavefront::exec(), and init().
std::vector<int> gem5::ComputeUnit::vectorRegsReserved |
Definition at line 367 of file compute_unit.hh.
Referenced by gem5::StaticRegisterManagerPolicy::allocateRegisters(), and init().
WaitClass gem5::ComputeUnit::vectorSharedMemUnit |
Definition at line 233 of file compute_unit.hh.
Referenced by gem5::ScheduleStage::checkMemResources(), gem5::LocalMemPipeline::exec(), gem5::Wavefront::exec(), and init().
std::vector<VectorRegisterFile*> gem5::ComputeUnit::vrf |
Definition at line 295 of file compute_unit.hh.
Referenced by gem5::ScheduleStage::addToSchList(), gem5::ScheduleStage::checkRfOperandReadComplete(), gem5::Wavefront::exec(), exec(), gem5::Gcn3ISA::Inst_DS__DS_SWIZZLE_B32::execute(), gem5::Gcn3ISA::Inst_DS__DS_PERMUTE_B32::execute(), gem5::Gcn3ISA::Inst_DS__DS_BPERMUTE_B32::execute(), gem5::Wavefront::freeRegisterFile(), gem5::Wavefront::initRegState(), gem5::Gcn3ISA::VecOperand< DataType, Const, NumDwords >::read(), gem5::VegaISA::VecOperand< DataType, Const, NumDwords >::read(), gem5::ScoreboardCheckStage::ready(), gem5::ScheduleStage::reserveResources(), gem5::ScheduleStage::schedRfWrites(), gem5::RegisterManager::setParent(), gem5::Gcn3ISA::VecOperand< DataType, Const, NumDwords >::write(), and gem5::VegaISA::VecOperand< DataType, Const, NumDwords >::write().
Cycles gem5::ComputeUnit::vrf_gm_bus_latency |
Definition at line 316 of file compute_unit.hh.
Referenced by gem5::Wavefront::exec().
Cycles gem5::ComputeUnit::vrf_lm_bus_latency |
Definition at line 320 of file compute_unit.hh.
Referenced by gem5::Wavefront::exec().
int gem5::ComputeUnit::vrfToCoalescerBusWidth |
Definition at line 268 of file compute_unit.hh.
WaitClass gem5::ComputeUnit::vrfToGlobalMemPipeBus |
Definition at line 223 of file compute_unit.hh.
Referenced by gem5::ScheduleStage::checkMemResources(), gem5::Wavefront::exec(), init(), and isDone().
WaitClass gem5::ComputeUnit::vrfToLocalMemPipeBus |
Definition at line 231 of file compute_unit.hh.
Referenced by gem5::ScheduleStage::checkMemResources(), gem5::Wavefront::exec(), init(), and isDone().
|
private |
Definition at line 888 of file compute_unit.hh.
Referenced by wfSize().
|
private |
The barrier slots for this CU.
Definition at line 928 of file compute_unit.hh.
Referenced by barrierSlot().
std::vector<std::vector<Wavefront*> > gem5::ComputeUnit::wfList |
Definition at line 291 of file compute_unit.hh.
Referenced by dispWorkgroup(), gem5::ScoreboardCheckStage::exec(), hasDispResources(), gem5::FetchStage::init(), isVectorAluIdle(), gem5::ComputeUnit::DataPort::recvTimingResp(), releaseWFsFromBarrier(), and ~ComputeUnit().