SWDEV-220533 - HostMapped should use fine grained.

Change-Id: I4ad2064e8e5ea1cd4ed7df143c778ccb685c4f22
Bu işleme şunda yer alıyor:
Christophe Paquot
2020-02-05 22:59:32 -08:00
işlemeyi yapan: Christophe Paquot
ebeveyn b66451e000
işleme 6462732e49
+1 -1
Dosyayı Görüntüle
@@ -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;
}