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:
committed by
Karthik Jayaprakash
parent
71e1a0b10d
commit
1f648c7d94
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user