SWDEV-376697 - Use PCIE fine grain memory pool when hipDeviceMallocUncached flag is used.
Change-Id: I7234d456ef2df42b0b9b9e0d2647ee9bded565f9
Šī revīzija ir iekļauta:
revīziju iesūtīja
Karthik Jayaprakash
vecāks
5dc104b3ea
revīzija
6b873b8a86
@@ -788,7 +788,7 @@ bool Buffer::create(bool alloc_local) {
|
|||||||
} else {
|
} else {
|
||||||
assert(!isHostMemDirectAccess() && "Runtime doesn't support direct access to GPU memory!");
|
assert(!isHostMemDirectAccess() && "Runtime doesn't support direct access to GPU memory!");
|
||||||
deviceMemory_ = dev().deviceLocalAlloc(size(), (memFlags & CL_MEM_SVM_ATOMICS) != 0,
|
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_);
|
owner()->setSvmPtr(deviceMemory_);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
#define ROCCLR_MEM_HSA_SIGNAL_MEMORY (1u << 30)
|
#define ROCCLR_MEM_HSA_SIGNAL_MEMORY (1u << 30)
|
||||||
#define ROCCLR_MEM_INTERNAL_MEMORY (1u << 29)
|
#define ROCCLR_MEM_INTERNAL_MEMORY (1u << 29)
|
||||||
#define CL_MEM_VA_RANGE_AMD (1u << 28)
|
#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 {
|
namespace device {
|
||||||
class Memory;
|
class Memory;
|
||||||
|
|||||||
Atsaukties uz šo jaunā problēmā
Block a user