SWDEV-456279 - Adding new hip flag to access contiguous memory and pass the flag to HSA API.
Change-Id: I1bafeaa3096395c729723af958d609bc41e7845c
[ROCm/clr commit: 1d48f2a1ab]
This commit is contained in:
1 parent
af5aaa806f
commit
ab70925687
6 files changed
+15
-4
No files matched your search
@@ -589,6 +589,8 @@ hipError_t hipExtMallocWithFlags(void** ptr, size_t sizeBytes, unsigned int flag
|
||||
ihipFlags = CL_MEM_SVM_ATOMICS;
|
||||
} else if (flags == hipDeviceMallocUncached) {
|
||||
ihipFlags = CL_MEM_SVM_ATOMICS | ROCCLR_MEM_HSA_UNCACHED;
|
||||
} else if (flags == hipDeviceMallocContiguous) {
|
||||
ihipFlags = ROCCLR_MEM_HSA_CONTIGUOUS | ROCCLR_MEM_HSA_UNCACHED;
|
||||
} 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