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

Change-Id: I7234d456ef2df42b0b9b9e0d2647ee9bded565f9


[ROCm/clr commit: 6b873b8a86]
This commit is contained in:
kjayapra-amd
2023-01-09 15:03:48 -08:00
committed by Karthik Jayaprakash
parent d7fdd9fcb8
commit 53073c4657
2 changed files with 2 additions and 2 deletions
@@ -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 {
+1 -1
View File
@@ -41,7 +41,7 @@
#define ROCCLR_MEM_HSA_SIGNAL_MEMORY (1u << 30)
#define ROCCLR_MEM_INTERNAL_MEMORY (1u << 29)
#define CL_MEM_VA_RANGE_AMD (1u << 28)
#define ROCCLR_MEM_HSA_PSEUDO_FINE_GRAIN (1u << 27)
#define ROCCLR_MEM_HSA_UNCACHED (1u << 27)
namespace device {
class Memory;