SWDEV-376697 - Use PCIE fine grain memory pool when hipDeviceMallocUncached flag is used.

Change-Id: I7234d456ef2df42b0b9b9e0d2647ee9bded565f9
Este commit está contenido en:
kjayapra-amd authored and Karthik Jayaprakash committed 2023-02-16 14:05:50 -05:00
1 padre 5dc104b3ea
commit 6b873b8a86
2 files changed
+2 -2

No files matched your search

+1 -1
Ver fichero
@@ -788,7 +788,7 @@ bool Buffer::create(bool alloc_local) {
} else {
assert(!isHostMemDirectAccess() && "Runtime doesn't support direct access to GPU memory!");
deviceMemory_ = dev().deviceLocalAlloc(size(), (memFlags & CL_MEM_SVM_ATOMICS) != 0,
(memFlags & ROCCLR_MEM_HSA_PSEUDO_FINE_GRAIN) != 0);
(memFlags & ROCCLR_MEM_HSA_UNCACHED) != 0);
}
owner()->setSvmPtr(deviceMemory_);
} else {