SWDEV-371904 - Adding pseudo fine grain flag to hsa memory allocation for device fine grained memory.
Change-Id: I8c605d6bc3ac905bfffc6de3a56911151ef0e663
[ROCm/clr commit: f7c194edf7]
This commit is contained in:
committed by
Karthik Jayaprakash
parent
c4fc6ea3ab
commit
c3c4eb85d3
@@ -489,7 +489,7 @@ hipError_t hipExtMallocWithFlags(void** ptr, size_t sizeBytes, unsigned int flag
|
||||
if (flags == hipDeviceMallocDefault) {
|
||||
ihipFlags = 0;
|
||||
} else if (flags == hipDeviceMallocFinegrained) {
|
||||
ihipFlags = CL_MEM_SVM_ATOMICS;
|
||||
ihipFlags = CL_MEM_SVM_ATOMICS | ROCCLR_MEM_HSA_PSEUDO_FINE_GRAIN;
|
||||
} else if (flags == hipMallocSignalMemory) {
|
||||
ihipFlags = CL_MEM_SVM_ATOMICS | CL_MEM_SVM_FINE_GRAIN_BUFFER | ROCCLR_MEM_HSA_SIGNAL_MEMORY;
|
||||
if (sizeBytes != 8) {
|
||||
|
||||
Reference in New Issue
Block a user