From f1b8ee7b7fd67843dc2422ce0ad1df653fba9c92 Mon Sep 17 00:00:00 2001 From: agunashe Date: Fri, 7 Feb 2025 12:00:43 -0800 Subject: [PATCH] SWDEV-513810 - APU: memory allocations threshold 0.75-->1 Needs further debugging but for now can test the change Need to verify if this fixes all the below issues- SWDEV-512754, SWDEV-511675, SWDEV-511055, SWDEV-504085, SWDEV-499503 Also verify original issues SWDEV-471863, SWDEV-490991 Change-Id: Ic845f851de1b98e8ed9aa0f07afddec3858119e9 --- rocclr/device/pal/palmemory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocclr/device/pal/palmemory.cpp b/rocclr/device/pal/palmemory.cpp index 0e065feee8..4c3eb1f518 100644 --- a/rocclr/device/pal/palmemory.cpp +++ b/rocclr/device/pal/palmemory.cpp @@ -119,7 +119,7 @@ bool Memory::create(Resource::MemoryType memType, Resource::CreateParams* params const Pal::GpuMemoryHeapProperties& invisibleHeap = dev().GetGpuHeapInvisible(); Pal::gpusize totalAlloc = dev().TotalAlloc(); if (invisibleHeap.logicalSize > 0 && memType == Local && - (totalAlloc > (invisibleHeap.logicalSize * 0.75))) { + (totalAlloc > invisibleHeap.logicalSize)) { memType = RemoteUSWC; } }