SWDEV-220533 - HostMapped should use fine grained.

Change-Id: I4ad2064e8e5ea1cd4ed7df143c778ccb685c4f22


[ROCm/clr commit: 0c6efd9678]
This commit is contained in:
Christophe Paquot authored and Christophe Paquot committed 2020-02-10 16:53:06 -05:00
1 parent 45fd2ac3b2
commit f6bc161d4a
1 file changed
+1 -1
+1 -1
View File
@@ -204,7 +204,7 @@ hipError_t hipHostMalloc(void** ptr, size_t sizeBytes, unsigned int flags) {
}
unsigned int ihipFlags = CL_MEM_SVM_FINE_GRAIN_BUFFER | (flags << 16);
if (flags & hipHostMallocCoherent ||
if (flags & (hipHostMallocCoherent | hipHostMallocMapped) ||
(!(flags & hipHostMallocNonCoherent) && HIP_HOST_COHERENT)) {
ihipFlags |= CL_MEM_SVM_ATOMICS;
}