SWDEV-220533 - HostMapped should use fine grained.
Change-Id: I4ad2064e8e5ea1cd4ed7df143c778ccb685c4f22
Bu işleme şunda yer alıyor:
işlemeyi yapan:
Christophe Paquot
ebeveyn
b66451e000
işleme
6462732e49
@@ -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;
|
||||
}
|
||||
|
||||
Yeni konuda referans
Bir kullanıcı engelle