SWDEV-220533 - HostMapped should use fine grained.
Change-Id: I4ad2064e8e5ea1cd4ed7df143c778ccb685c4f22
[ROCm/hip commit: 6462732e49]
Este commit está contenido en:
cometido por
Christophe Paquot
padre
40c0d54931
commit
652e82f726
@@ -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;
|
||||
}
|
||||
|
||||
Referencia en una nueva incidencia
Block a user