diff --git a/configs/example/apu_se.py b/configs/example/apu_se.py index 98a1e19c60..6f686f3f4d 100644 --- a/configs/example/apu_se.py +++ b/configs/example/apu_se.py @@ -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}') diff --git a/src/gpu-compute/GPU.py b/src/gpu-compute/GPU.py index 6b0bb2ed63..d2f9b6e59b 100644 --- a/src/gpu-compute/GPU.py +++ b/src/gpu-compute/GPU.py @@ -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)