From d1901f201772d9b39a5de571c06d2bb828f723ed Mon Sep 17 00:00:00 2001 From: Satyanvesh Dittakavi Date: Fri, 15 Dec 2023 08:06:04 +0000 Subject: [PATCH] SWDEV-434846 - Limit the gpu single allocation percentage for all MI300 versions Change-Id: I33dea3eaab249ce3f9a624d38267489f99cd530c [ROCm/clr commit: 755eb2962c22f141f3481ea79fbfc33696307f16] --- projects/clr/rocclr/device/rocm/rocdevice.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/projects/clr/rocclr/device/rocm/rocdevice.cpp b/projects/clr/rocclr/device/rocm/rocdevice.cpp index 02e27e14ce..3b6b4d4d54 100644 --- a/projects/clr/rocclr/device/rocm/rocdevice.cpp +++ b/projects/clr/rocclr/device/rocm/rocdevice.cpp @@ -1340,9 +1340,8 @@ bool Device::populateOCLDeviceConstants() { GPU_SINGLE_ALLOC_PERCENT = 75; } } - // Limit gpu single allocation percentage on MI300 1P which has one gpu. - if ((isa().versionMajor() == 9) && (isa().versionMinor() == 4) && - (isa().versionStepping() == 0)) { + // Limit gpu single allocation percentage on MI300 + if ((isa().versionMajor() == 9) && (isa().versionMinor() == 4)) { if (gpu_agents_.size() == 1 || p2p_agents_.size() == 0) { if (flagIsDefault(GPU_SINGLE_ALLOC_PERCENT)) { GPU_SINGLE_ALLOC_PERCENT = 60;