gem5
[DEVELOP-FOR-23.0]
|
#include <shader.hh>
Classes | |
struct | ShaderStats |
Public Types | |
enum | hsail_mode_e { SIMT, VECTOR_SCALAR } |
typedef ShaderParams | Params |
![]() | |
using | Params = ClockedObjectParams |
Parameters of ClockedObject. More... | |
![]() | |
typedef SimObjectParams | Params |
Public Member Functions | |
GPUDispatcher & | dispatcher () |
void | sampleLoad (const Tick accessTime) |
void | sampleStore (const Tick accessTime) |
void | sampleInstRoundTrip (std::vector< Tick > roundTripTime) |
void | sampleLineRoundTrip (const std::map< Addr, std::vector< Tick >> &roundTripTime) |
void | setHwReg (int regIdx, uint32_t val) |
uint32_t | getHwReg (int regIdx) |
const ApertureRegister & | gpuVmApe () const |
const ApertureRegister & | ldsApe () const |
void | setLdsApe (Addr base, Addr limit) |
const ApertureRegister & | scratchApe () const |
void | setScratchApe (Addr base, Addr limit) |
bool | isGpuVmApe (Addr addr) const |
bool | isLdsApe (Addr addr) const |
bool | isScratchApe (Addr addr) const |
Addr | getScratchBase () |
Addr | getHiddenPrivateBase () |
void | initShHiddenPrivateBase (Addr queueBase, uint32_t offset) |
RequestorID | vramRequestorId () |
Forward the VRAM requestor ID needed for device memory from CP. More... | |
Shader (const Params &p) | |
~Shader () | |
virtual void | init () |
init() is called after all C++ SimObjects have been created and all ports are connected. More... | |
void | execScheduledAdds () |
void | ScheduleAdd (int *val, Tick when, int x) |
bool | processTimingPacket (PacketPtr pkt) |
void | AccessMem (uint64_t address, void *ptr, uint32_t size, int cu_id, MemCmd cmd, bool suppress_func_errors) |
void | ReadMem (uint64_t address, void *ptr, uint32_t sz, int cu_id) |
void | ReadMem (uint64_t address, void *ptr, uint32_t sz, int cu_id, bool suppress_func_errors) |
void | WriteMem (uint64_t address, void *ptr, uint32_t sz, int cu_id) |
void | WriteMem (uint64_t address, void *ptr, uint32_t sz, int cu_id, bool suppress_func_errors) |
void | doFunctionalAccess (const RequestPtr &req, MemCmd cmd, void *data, bool suppress_func_errors, int cu_id) |
void | registerCU (int cu_id, ComputeUnit *compute_unit) |
void | prepareInvalidate (HSAQueueEntry *task) |
void | prepareFlush (GPUDynInstPtr gpuDynInst) |
dispatcher/shader arranges flush requests to the CUs More... | |
bool | dispatchWorkgroups (HSAQueueEntry *task) |
Addr | mmap (int length) |
void | functionalTLBAccess (PacketPtr pkt, int cu_id, BaseMMU::Mode mode) |
void | updateContext (int cid) |
void | notifyCuSleep () |
void | incVectorInstSrcOperand (int num_operands) |
void | incVectorInstDstOperand (int num_operands) |
![]() | |
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 Port & | getPort (const std::string &if_name, PortID idx=InvalidPortID) |
Get a port with a given name and index. 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 |
Public Attributes | |
SimpleThread * | cpuThread |
ThreadContext * | gpuTc |
BaseCPU * | cpuPointer |
EventFunctionWrapper | tickEvent |
bool | timingSim |
hsail_mode_e | hsail_mode |
int | impl_kern_launch_acq |
int | impl_kern_end_rel |
int | coissue_return |
int | trace_vgpr_all |
int | n_cu |
int | n_wf |
int | globalMemSize |
int | nextSchedCu |
uint32_t | sa_n |
std::vector< int * > | sa_val |
std::vector< uint64_t > | sa_when |
std::vector< int32_t > | sa_x |
std::vector< ComputeUnit * > | cuList |
GPUCommandProcessor & | gpuCmdProc |
GPUDispatcher & | _dispatcher |
AMDGPUSystemHub * | systemHub |
int64_t | max_valu_insts |
int64_t | total_valu_insts |
![]() | |
PowerState * | powerState |
Protected Attributes | |
gem5::Shader::ShaderStats | stats |
![]() | |
const SimObjectParams & | _params |
Cached copy of the object parameters. More... | |
![]() | |
EventQueue * | eventq |
A pointer to this object's event queue. More... | |
Private Attributes | |
ApertureRegister | _gpuVmApe |
ApertureRegister | _ldsApe |
ApertureRegister | _scratchApe |
Addr | shHiddenPrivateBaseVmid |
std::unordered_map< int, uint32_t > | hwRegs |
int | _activeCus |
Tick | _lastInactiveTick |
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... | |
typedef ShaderParams gem5::Shader::Params |
gem5::Shader::Shader | ( | const Params & | p | ) |
Definition at line 56 of file shader.cc.
References execScheduledAdds().
gem5::Shader::~Shader | ( | ) |
Definition at line 146 of file shader.cc.
References cuList, gem5::ArmISA::j, and n_cu.
void gem5::Shader::AccessMem | ( | uint64_t | address, |
void * | ptr, | ||
uint32_t | size, | ||
int | cu_id, | ||
MemCmd | cmd, | ||
bool | suppress_func_errors | ||
) |
Definition at line 376 of file shader.cc.
References cuList, doFunctionalAccess(), and gem5::ChunkGenerator::done().
Referenced by ReadMem(), and WriteMem().
GPUDispatcher & gem5::Shader::dispatcher | ( | ) |
Definition at line 99 of file shader.cc.
References _dispatcher.
Referenced by gem5::Gcn3ISA::Inst_SOPP__S_ENDPGM::execute(), gem5::VegaISA::Inst_SOPP__S_ENDPGM::execute(), and gem5::ComputeUnit::DataPort::handleResponse().
bool gem5::Shader::dispatchWorkgroups | ( | HSAQueueEntry * | task | ) |
Definition at line 235 of file shader.cc.
References _activeCus, _lastInactiveTick, cuList, gem5::curTick(), gem5::HSAQueueEntry::dispComplete(), DPRINTF, gem5::HSAQueueEntry::globalWgId(), gem5::HSAQueueEntry::markWgDispatch(), n_cu, nextSchedCu, panic_if, gem5::Event::scheduled(), and tickEvent.
Referenced by gem5::GPUDispatcher::exec().
void gem5::Shader::doFunctionalAccess | ( | const RequestPtr & | req, |
MemCmd | cmd, | ||
void * | data, | ||
bool | suppress_func_errors, | ||
int | cu_id | ||
) |
Definition at line 284 of file shader.cc.
References cuList, data, gem5::Packet::dataStatic(), fatal, functionalTLBAccess(), gem5::BaseMMU::Read, gem5::MemCmd::ReadReq, gem5::Packet::req, gem5::roundDown(), gem5::Packet::setSuppressFuncError(), gem5::BaseMMU::Write, and gem5::MemCmd::WriteReq.
Referenced by AccessMem().
void gem5::Shader::execScheduledAdds | ( | ) |
Definition at line 161 of file shader.cc.
References gem5::curTick(), DPRINTF, gem5::ArmISA::i, panic_if, sa_n, sa_val, sa_when, sa_x, gem5::EventManager::schedule(), and tickEvent.
Referenced by Shader().
void gem5::Shader::functionalTLBAccess | ( | PacketPtr | pkt, |
int | cu_id, | ||
BaseMMU::Mode | mode | ||
) |
Definition at line 427 of file shader.cc.
References cuList, gpuTc, gem5::ArmISA::mode, gem5::Packet::senderState, and gem5::GpuTranslationState::tlbEntry.
Referenced by doFunctionalAccess().
|
inline |
Definition at line 191 of file shader.hh.
References shHiddenPrivateBaseVmid.
Referenced by gem5::GPUDynInst::resolveFlatSegment().
|
inline |
|
inline |
Definition at line 185 of file shader.hh.
References _scratchApe, and gem5::ApertureRegister::base.
Referenced by gem5::GPUDynInst::resolveFlatSegment().
|
inline |
|
inline |
Definition at line 312 of file shader.hh.
References stats, and gem5::Shader::ShaderStats::vectorInstDstOperand.
Referenced by gem5::Wavefront::exec().
|
inline |
Definition at line 306 of file shader.hh.
References stats, and gem5::Shader::ShaderStats::vectorInstSrcOperand.
Referenced by gem5::Wavefront::exec().
|
virtual |
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 138 of file shader.cc.
References cpuPointer, gem5::BaseCPU::getContext(), and gpuTc.
|
inline |
Definition at line 197 of file shader.hh.
References gem5::ArmISA::offset, panic_if, and shHiddenPrivateBaseVmid.
Referenced by gem5::Wavefront::initRegState().
|
inline |
Definition at line 160 of file shader.hh.
References _gpuVmApe, gem5::X86ISA::addr, gem5::ApertureRegister::base, and gem5::ApertureRegister::limit.
|
inline |
Definition at line 168 of file shader.hh.
References _ldsApe, gem5::X86ISA::addr, gem5::ApertureRegister::base, and gem5::ApertureRegister::limit.
Referenced by gem5::GPUDynInst::doApertureCheck().
|
inline |
Definition at line 176 of file shader.hh.
References _scratchApe, gem5::X86ISA::addr, gem5::ApertureRegister::base, and gem5::ApertureRegister::limit.
|
inline |
Definition at line 134 of file shader.hh.
References _ldsApe.
Referenced by gem5::GPUDynInst::resolveFlatSegment().
Addr gem5::Shader::mmap | ( | int | length | ) |
Definition at line 105 of file shader.cc.
References gem5::Process::allocateMem(), DPRINTF, gem5::ThreadContext::getProcessPtr(), gpuTc, gem5::Process::memState, gem5::Process::mmapGrowsDown(), gem5::X86ISA::PageBytes, and gem5::roundUp().
void gem5::Shader::notifyCuSleep | ( | ) |
Definition at line 517 of file shader.cc.
References _activeCus, _lastInactiveTick, cuList, gem5::curTick(), panic_if, gem5::Shader::ShaderStats::shaderActiveTicks, and stats.
Referenced by gem5::ComputeUnit::exec().
void gem5::Shader::prepareFlush | ( | GPUDynInstPtr | gpuDynInst | ) |
dispatcher/shader arranges flush requests to the CUs
Definition at line 222 of file shader.cc.
References _dispatcher, cuList, gem5::GPUDispatcher::getOutstandingWbs(), and gem5::GPUDispatcher::updateWbCounter().
Referenced by gem5::Gcn3ISA::Inst_SOPP__S_ENDPGM::execute(), and gem5::VegaISA::Inst_SOPP__S_ENDPGM::execute().
void gem5::Shader::prepareInvalidate | ( | HSAQueueEntry * | task | ) |
Definition at line 191 of file shader.cc.
References _dispatcher, cuList, gem5::HSAQueueEntry::dispatchId(), gem5::HSAQueueEntry::isInvStarted(), n_cu, gem5::HSAQueueEntry::outstandingInvs(), and gem5::GPUDispatcher::updateInvCounter().
Referenced by gem5::GPUDispatcher::exec().
bool gem5::Shader::processTimingPacket | ( | PacketPtr | pkt | ) |
void gem5::Shader::ReadMem | ( | uint64_t | address, |
void * | ptr, | ||
uint32_t | sz, | ||
int | cu_id | ||
) |
Definition at line 394 of file shader.cc.
References AccessMem(), and gem5::MemCmd::ReadReq.
void gem5::Shader::ReadMem | ( | uint64_t | address, |
void * | ptr, | ||
uint32_t | sz, | ||
int | cu_id, | ||
bool | suppress_func_errors | ||
) |
Definition at line 400 of file shader.cc.
References AccessMem(), and gem5::MemCmd::ReadReq.
|
inline |
void gem5::Shader::sampleInstRoundTrip | ( | std::vector< Tick > | roundTripTime | ) |
Definition at line 468 of file shader.cc.
References gem5::Shader::ShaderStats::gmEnqueueLatency, gem5::Shader::ShaderStats::gmToCompleteLatency, gem5::Shader::ShaderStats::initToCoalesceLatency, gem5::InstMemoryHopMax, gem5::Shader::ShaderStats::rubyNetworkLatency, gem5::statistics::DistBase< Derived, Stor >::sample(), stats, gem5::ArmISA::t1, gem5::ArmISA::t2, gem5::ArmISA::t3, gem5::ArmISA::t4, and gem5::ArmISA::t5.
Referenced by gem5::GlobalMemPipeline::exec().
void gem5::Shader::sampleLineRoundTrip | ( | const std::map< Addr, std::vector< Tick >> & | roundTripTime | ) |
Definition at line 488 of file shader.cc.
References gem5::Shader::ShaderStats::cacheBlockRoundTrip, gem5::Shader::ShaderStats::coalsrLineAddresses, gem5::statistics::DistBase< Derived, Stor >::sample(), and stats.
Referenced by gem5::GlobalMemPipeline::exec().
void gem5::Shader::sampleLoad | ( | const Tick | accessTime | ) |
Definition at line 461 of file shader.cc.
References gem5::Shader::ShaderStats::allLatencyDist, gem5::Shader::ShaderStats::loadLatencyDist, gem5::statistics::DistBase< Derived, Stor >::sample(), and stats.
Referenced by gem5::GlobalMemPipeline::exec().
void gem5::Shader::sampleStore | ( | const Tick | accessTime | ) |
Definition at line 451 of file shader.cc.
References gem5::Shader::ShaderStats::allLatencyDist, gem5::statistics::DistBase< Derived, Stor >::sample(), stats, and gem5::Shader::ShaderStats::storeLatencyDist.
Referenced by gem5::GlobalMemPipeline::exec().
void gem5::Shader::ScheduleAdd | ( | int * | val, |
Tick | when, | ||
int | x | ||
) |
Definition at line 357 of file shader.cc.
References gem5::curTick(), DPRINTF, gem5::EventManager::reschedule(), sa_n, sa_val, sa_when, sa_x, gem5::Event::scheduled(), tickEvent, gem5::X86ISA::val, gem5::Event::when(), and gem5::VegaISA::x.
Referenced by gem5::LocalMemPipeline::exec(), gem5::ScalarMemPipeline::exec(), and gem5::GlobalMemPipeline::exec().
|
inline |
Definition at line 147 of file shader.hh.
References _scratchApe.
|
inline |
Definition at line 116 of file shader.hh.
References hwRegs, and gem5::X86ISA::val.
Referenced by gem5::PM4PacketProcessor::mapProcess().
Definition at line 140 of file shader.hh.
References _ldsApe, gem5::ApertureRegister::base, gem5::X86ISA::base, gem5::ApertureRegister::limit, and gem5::X86ISA::limit.
Referenced by gem5::PM4PacketProcessor::mapProcess().
Definition at line 153 of file shader.hh.
References _scratchApe, gem5::ApertureRegister::base, gem5::X86ISA::base, gem5::ApertureRegister::limit, and gem5::X86ISA::limit.
Referenced by gem5::PM4PacketProcessor::mapProcess().
void gem5::Shader::updateContext | ( | int | cid | ) |
Definition at line 153 of file shader.cc.
References cpuPointer, gem5::BaseCPU::getContext(), and gpuTc.
Referenced by gem5::GPUDispatcher::exec().
RequestorID gem5::Shader::vramRequestorId | ( | ) |
Forward the VRAM requestor ID needed for device memory from CP.
Definition at line 530 of file shader.cc.
References gpuCmdProc, and gem5::GPUCommandProcessor::vramRequestorId().
Referenced by gem5::ComputeUnit::vramRequestorId().
void gem5::Shader::WriteMem | ( | uint64_t | address, |
void * | ptr, | ||
uint32_t | sz, | ||
int | cu_id | ||
) |
Definition at line 408 of file shader.cc.
References AccessMem(), and gem5::MemCmd::WriteReq.
void gem5::Shader::WriteMem | ( | uint64_t | address, |
void * | ptr, | ||
uint32_t | sz, | ||
int | cu_id, | ||
bool | suppress_func_errors | ||
) |
Definition at line 414 of file shader.cc.
References AccessMem(), and gem5::MemCmd::WriteReq.
|
private |
Definition at line 95 of file shader.hh.
Referenced by dispatchWorkgroups(), and notifyCuSleep().
GPUDispatcher& gem5::Shader::_dispatcher |
Definition at line 257 of file shader.hh.
Referenced by dispatcher(), prepareFlush(), and prepareInvalidate().
|
private |
Definition at line 86 of file shader.hh.
Referenced by gpuVmApe(), and isGpuVmApe().
|
private |
Definition at line 98 of file shader.hh.
Referenced by dispatchWorkgroups(), and notifyCuSleep().
|
private |
Definition at line 87 of file shader.hh.
Referenced by isLdsApe(), ldsApe(), and setLdsApe().
|
private |
Definition at line 88 of file shader.hh.
Referenced by getScratchBase(), isScratchApe(), scratchApe(), and setScratchApe().
int gem5::Shader::coissue_return |
Definition at line 229 of file shader.hh.
Referenced by gem5::LocalMemPipeline::exec(), gem5::ScalarMemPipeline::exec(), and gem5::GlobalMemPipeline::exec().
BaseCPU* gem5::Shader::cpuPointer |
Definition at line 113 of file shader.hh.
Referenced by init(), and updateContext().
SimpleThread* gem5::Shader::cpuThread |
std::vector<ComputeUnit*> gem5::Shader::cuList |
Definition at line 254 of file shader.hh.
Referenced by AccessMem(), dispatchWorkgroups(), doFunctionalAccess(), functionalTLBAccess(), notifyCuSleep(), prepareFlush(), prepareInvalidate(), registerCU(), and ~Shader().
int gem5::Shader::globalMemSize |
Definition at line 238 of file shader.hh.
Referenced by gem5::GlobalMemPipeline::init().
GPUCommandProcessor& gem5::Shader::gpuCmdProc |
Definition at line 256 of file shader.hh.
Referenced by gem5::AMDGPUDevice::readFrame(), gem5::ComputeUnit::sendRequest(), vramRequestorId(), and gem5::AMDGPUDevice::writeFrame().
ThreadContext* gem5::Shader::gpuTc |
Definition at line 112 of file shader.hh.
Referenced by functionalTLBAccess(), init(), gem5::FetchUnit::initiateFetch(), mmap(), gem5::ComputeUnit::sendRequest(), gem5::ComputeUnit::sendScalarRequest(), and updateContext().
hsail_mode_e gem5::Shader::hsail_mode |
Definition at line 222 of file shader.hh.
Referenced by gem5::Wavefront::exec().
|
private |
Definition at line 92 of file shader.hh.
Referenced by getHwReg(), and setHwReg().
int gem5::Shader::impl_kern_end_rel |
Definition at line 227 of file shader.hh.
Referenced by gem5::Gcn3ISA::Inst_SOPP__S_ENDPGM::execute(), gem5::VegaISA::Inst_SOPP__S_ENDPGM::execute(), and gem5::ComputeUnit::injectGlobalMemFence().
int gem5::Shader::impl_kern_launch_acq |
Definition at line 225 of file shader.hh.
Referenced by gem5::GPUDispatcher::exec().
int64_t gem5::Shader::max_valu_insts |
Definition at line 260 of file shader.hh.
Referenced by gem5::ComputeUnit::updateInstStats().
int gem5::Shader::n_cu |
Definition at line 233 of file shader.hh.
Referenced by dispatchWorkgroups(), prepareInvalidate(), and ~Shader().
int gem5::Shader::n_wf |
Definition at line 235 of file shader.hh.
Referenced by gem5::ComputeUnit::dispWorkgroup(), gem5::FetchUnit::exec(), gem5::ScoreboardCheckStage::exec(), gem5::ComputeUnit::hasDispResources(), gem5::FetchUnit::init(), gem5::ComputeUnit::isVectorAluIdle(), gem5::ComputeUnit::releaseWFsFromBarrier(), gem5::Wavefront::setStatus(), and gem5::ComputeUnit::~ComputeUnit().
int gem5::Shader::nextSchedCu |
Definition at line 241 of file shader.hh.
Referenced by dispatchWorkgroups().
uint32_t gem5::Shader::sa_n |
Definition at line 244 of file shader.hh.
Referenced by execScheduledAdds(), and ScheduleAdd().
std::vector<int*> gem5::Shader::sa_val |
Definition at line 247 of file shader.hh.
Referenced by execScheduledAdds(), and ScheduleAdd().
std::vector<uint64_t> gem5::Shader::sa_when |
Definition at line 249 of file shader.hh.
Referenced by execScheduledAdds(), and ScheduleAdd().
std::vector<int32_t> gem5::Shader::sa_x |
Definition at line 251 of file shader.hh.
Referenced by execScheduledAdds(), and ScheduleAdd().
|
private |
Definition at line 89 of file shader.hh.
Referenced by getHiddenPrivateBase(), and initShHiddenPrivateBase().
|
protected |
AMDGPUSystemHub* gem5::Shader::systemHub |
Definition at line 258 of file shader.hh.
Referenced by gem5::FetchUnit::fetch(), gem5::ComputeUnit::ScalarDataPort::MemReqEvent::process(), and gem5::ComputeUnit::DataPort::processMemReqEvent().
EventFunctionWrapper gem5::Shader::tickEvent |
Definition at line 218 of file shader.hh.
Referenced by dispatchWorkgroups(), execScheduledAdds(), and ScheduleAdd().
bool gem5::Shader::timingSim |
Definition at line 221 of file shader.hh.
Referenced by gem5::FetchUnit::init(), and gem5::ComputeUnit::sendRequest().
int64_t gem5::Shader::total_valu_insts |
Definition at line 261 of file shader.hh.
Referenced by gem5::ComputeUnit::updateInstStats().