Go to the documentation of this file.
43 #ifndef __GPU_COMPUTE_DISPATCHER_HH__
44 #define __GPU_COMPUTE_DISPATCHER_HH__
47 #include <unordered_map>
52 #include "params/GPUDispatcher.hh"
99 #endif // __GPU_COMPUTE_DISPATCHER_HH__
Stats::Scalar numKernelLaunched
GPUCommandProcessor * gpuCmdProc
void regStats() override
Callback to set stat parameters.
std::queue< int > execIds
bool isReachingKernelEnd(Wavefront *wf)
HSAQueueEntry * hsaTask(int disp_id)
Stats::Scalar cyclesWaitingForDispatch
GPUDispatcher(const Params *p)
This is a simple scalar statistic, like a counter.
void notifyWgCompl(Wavefront *wf)
When an end program instruction detects that the last WF in a WG has completed it will call this meth...
void dispatch(HSAQueueEntry *task)
After all relevant HSA data structures have been traversed/extracted from memory by the CP,...
void updateInvCounter(int kern_id, int val=-1)
update the counter of oustanding inv requests for the kernel kern_id: kernel id val: +1/-1,...
void setCommandProcessor(GPUCommandProcessor *gpu_cmd_proc)
void unserialize(CheckpointIn &cp) override
Unserialize an object.
std::queue< int > doneIds
EventFunctionWrapper tickEvent
GPUDispatcherParams Params
std::unordered_map< int, HSAQueueEntry * > hsaQueueEntries
int getOutstandingWbs(int kern_id)
get kernel's outstanding cache writeback requests
void setShader(Shader *new_shader)
std::ostream CheckpointOut
void serialize(CheckpointOut &cp) const override
Serialize an object.
bool updateWbCounter(int kern_id, int val=-1)
update the counter of oustanding wb requests for the kernel kern_id: kernel id val: +1/-1,...
Abstract superclass for simulation objects.
Generated on Wed Sep 30 2020 14:02:12 for gem5 by doxygen 1.8.17