From 6462732e495bdeee8af01cd9390d9d800ac7bfcd Mon Sep 17 00:00:00 2001 From: Christophe Paquot Date: Wed, 5 Feb 2020 22:59:32 -0800 Subject: [PATCH] SWDEV-220533 - HostMapped should use fine grained. Change-Id: I4ad2064e8e5ea1cd4ed7df143c778ccb685c4f22 --- vdi/hip_memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vdi/hip_memory.cpp b/vdi/hip_memory.cpp index 2aa54aca30..5d568e26a4 100644 --- a/vdi/hip_memory.cpp +++ b/vdi/hip_memory.cpp @@ -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; }