SWDEV-511672 - Special case the Remote USWC memory usage for HIP, if the alloc size is large.

Change-Id: I524c1402b249cedfd58b56f494caa2ac057e1623


[ROCm/clr commit: cf6aabb823]
This commit is contained in:
kjayapra-amd
2025-02-10 17:11:40 -05:00
committed by Karthik Jayaprakash
parent 71e1a0b10d
commit 1f648c7d94
+2 -1
View File
@@ -26,6 +26,7 @@
#include "device/device.hpp"
#include "device/pal/paldevice.hpp"
#include "device/pal/palblit.hpp"
#include "utils/flags.hpp"
#ifdef _WIN32
#include <d3d10_1.h>
@@ -114,7 +115,7 @@ bool Memory::create(Resource::MemoryType memType, Resource::CreateParams* params
memType = Persistent;
}
if (dev().settings().apuSystem_) {
if (amd::IS_HIP && dev().settings().apuSystem_) {
const Pal::GpuMemoryHeapProperties& invisibleHeap = dev().GetGpuHeapInvisible();
Pal::gpusize totalAlloc = dev().TotalAlloc();
if (invisibleHeap.logicalSize > 0 && memType == Local &&