SWDEV-491967 - Add the right VGPRs per SIMD and VGPR Granularity for gfx12
- Default values are being assigned causing occupancy calculation to go
wrong without the right values defined for gfx12 ASICs
- Also added the these values for gfx1105
Change-Id: I611cc3a8ed8c57f2def637310ce1c3a48c16a574
[ROCm/clr commit: a26dc29eb9]
This commit is contained in:
@@ -1806,11 +1806,24 @@ bool Device::populateOCLDeviceConstants() {
|
||||
HIP_MEM_POOL_USE_VM &= info_.virtualMemoryManagement_;
|
||||
|
||||
switch (isa().versionMajor()) {
|
||||
case (12):
|
||||
if (isa().versionMinor() == 0) {
|
||||
switch (isa().versionStepping()) {
|
||||
case (0):
|
||||
case (1):
|
||||
default:
|
||||
info_.vgprAllocGranularity_ = 24;
|
||||
info_.vgprsPerSimd_ = 1536;
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case (11):
|
||||
if (isa().versionMinor() == 0) {
|
||||
switch (isa().versionStepping()) {
|
||||
case (0):
|
||||
case (1):
|
||||
case (5):
|
||||
info_.vgprAllocGranularity_ = 24;
|
||||
info_.vgprsPerSimd_ = 1536;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user