gpu-compute: Gfx version check for FS and SE mode
There is no GPU device in SE mode to get version from and no GPU driver
in FS mode to get version from, so a conditional needs to be added
depending on the mode to get the gfx version.
Change-Id: I33fdafb60d351ebc5148e2248244537fb5bebd31
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/71078
Tested-by: kokoro <noreply+kokoro@google.com>
Maintainer: Matt Sinclair <mattdsinclair@gmail.com>
Reviewed-by: Matt Sinclair <mattdsinclair@gmail.com>
(cherry picked from commit ebd5b3e4ae)
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/71158
Reviewed-by: Matthew Poremba <matthew.poremba@amd.com>
Reviewed-by: Bobby Bruce <bbruce@ucdavis.edu>
Maintainer: Bobby Bruce <bbruce@ucdavis.edu>
This commit is contained in:
committed by
Bobby Bruce
parent
a74695f5bc
commit
cf2d5b68a9
@@ -227,9 +227,11 @@ GPUCommandProcessor::submitDispatchPkt(void *raw_pkt, uint32_t queue_id,
|
||||
|
||||
DPRINTF(GPUKernelInfo, "Kernel name: %s\n", kernel_name.c_str());
|
||||
|
||||
GfxVersion gfxVersion = FullSystem ? gpuDevice->getGfxVersion()
|
||||
: driver()->getGfxVersion();
|
||||
HSAQueueEntry *task = new HSAQueueEntry(kernel_name, queue_id,
|
||||
dynamic_task_id, raw_pkt, &akc, host_pkt_addr, machine_code_addr,
|
||||
gpuDevice->getGfxVersion());
|
||||
gfxVersion);
|
||||
|
||||
DPRINTF(GPUCommandProc, "Task ID: %i Got AQL: wg size (%dx%dx%d), "
|
||||
"grid size (%dx%dx%d) kernarg addr: %#x, completion "
|
||||
|
||||
@@ -142,6 +142,8 @@ class GPUComputeDriver final : public EmulatedDriver
|
||||
};
|
||||
typedef class EventTableEntry ETEntry;
|
||||
|
||||
GfxVersion getGfxVersion() const { return gfxVersion; }
|
||||
|
||||
private:
|
||||
/**
|
||||
* GPU that is controlled by this driver.
|
||||
|
||||
Reference in New Issue
Block a user