From d98d5ca12a07a581f829720d75de7ae0b877d9e1 Mon Sep 17 00:00:00 2001 From: Rahul Garg Date: Tue, 26 Mar 2019 10:19:13 +0530 Subject: [PATCH] Let hipHostMalloc always share/map pinned host ptr [ROCm/hip commit: f0af07379360a8c79a3c7fe70ab5a533750484a1] --- projects/hip/src/hip_memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip/src/hip_memory.cpp b/projects/hip/src/hip_memory.cpp index 7cae2b2a10..e3823c504e 100644 --- a/projects/hip/src/hip_memory.cpp +++ b/projects/hip/src/hip_memory.cpp @@ -357,7 +357,7 @@ hipError_t hipHostMalloc(void** ptr, size_t sizeBytes, unsigned int flags) { *ptr = hip_internal::allocAndSharePtr( (amFlags & amHostCoherent) ? "finegrained_host" : "pinned_host", sizeBytes, ctx, - (trueFlags & hipHostMallocPortable) /*shareWithAll*/, amFlags, flags, 0); + true /*shareWithAll*/, amFlags, flags, 0); if (sizeBytes && (*ptr == NULL)) { hip_status = hipErrorMemoryAllocation;