From a0127c9eea0e53534fb341b032232ec207e2b44d Mon Sep 17 00:00:00 2001 From: Lang Yu Date: Mon, 27 May 2024 14:11:04 +0800 Subject: [PATCH] SWDEV-461525 - Add vgprAllocGranularity_ and vgprsPerSimd_ for gfx1150/1 These are missed for gfx1150/1. Change-Id: I03d997e451d15a01a961e6597f805f634e5c3ae7 Signed-off-by: Lang Yu --- rocclr/device/rocm/rocdevice.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/rocclr/device/rocm/rocdevice.cpp b/rocclr/device/rocm/rocdevice.cpp index a6864610c9..67d72dbd68 100644 --- a/rocclr/device/rocm/rocdevice.cpp +++ b/rocclr/device/rocm/rocdevice.cpp @@ -1842,6 +1842,20 @@ bool Device::populateOCLDeviceConstants() { info_.vgprsPerSimd_ = 1024; break; } + } else if (isa().versionMinor() == 5) { + switch (isa().versionStepping()) { + case (1): + info_.vgprAllocGranularity_ = 24; + info_.vgprsPerSimd_ = 1536; + break; + default: + info_.vgprAllocGranularity_ = 16; + info_.vgprsPerSimd_ = 1024; + break; + } + } else { + info_.vgprAllocGranularity_ = 16; + info_.vgprsPerSimd_ = 1024; } break; case (10):