configs,gpu-compute: Set proper dGPUPoolID defaults
In GPU.py, dGPUPoolID is defined as an int, but was defaulted to False. Explicitly set it to 0, instead. In apu_se.py, dGPUPoolID was being set to 1, but that was resulting in crashes. Setting it to 0 avoids those crashes. Change-Id: I0f1161588279a335bbd0d8ae7acda97fc23201b5 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/47527 Reviewed-by: Matt Sinclair <mattdsinclair@gmail.com> Reviewed-by: Matthew Poremba <matthew.poremba@amd.com> Maintainer: Matt Sinclair <mattdsinclair@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
committed by
Matt Sinclair
parent
6d2404acc5
commit
ab9e28ddb8
@@ -432,9 +432,10 @@ if args.dgpu:
|
||||
args.m_type = 6
|
||||
|
||||
# HSA kernel mode driver
|
||||
# dGPUPoolID is 0 because we only have one memory pool
|
||||
gpu_driver = GPUComputeDriver(filename = "kfd", isdGPU = args.dgpu,
|
||||
gfxVersion = args.gfx_version,
|
||||
dGPUPoolID = 1, m_type = args.m_type)
|
||||
dGPUPoolID = 0, m_type = args.m_type)
|
||||
|
||||
renderDriNum = 128
|
||||
render_driver = GPURenderDriver(filename = f'dri/renderD{renderDriNum}')
|
||||
|
||||
@@ -245,7 +245,7 @@ class GPUComputeDriver(EmulatedDriver):
|
||||
device = Param.GPUCommandProcessor('GPU controlled by this driver')
|
||||
isdGPU = Param.Bool(False, 'Driver is for a dGPU')
|
||||
gfxVersion = Param.GfxVersion('gfx801', 'ISA of gpu to model')
|
||||
dGPUPoolID = Param.Int(False, 'Pool ID for dGPU.')
|
||||
dGPUPoolID = Param.Int(0, 'Pool ID for dGPU.')
|
||||
# Default Mtype for caches
|
||||
#-- 1 1 1 C_RW_S (Cached-ReadWrite-Shared)
|
||||
#-- 1 1 0 C_RW_US (Cached-ReadWrite-Unshared)
|
||||
|
||||
Reference in New Issue
Block a user