SWDEV-434846 - Limit the gpu single allocation percentage for all MI300 versions

Change-Id: I33dea3eaab249ce3f9a624d38267489f99cd530c


[ROCm/clr commit: 755eb2962c]
This commit is contained in:
Satyanvesh Dittakavi
2023-12-15 08:06:04 +00:00
parent b8e7a858a5
commit d1901f2017
@@ -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;