Let hipHostMalloc always share/map pinned host ptr

Αυτή η υποβολή περιλαμβάνεται σε:
Rahul Garg
2019-03-26 10:19:13 +05:30
γονέας ad11972f47
υποβολή 9b38380c03
@@ -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;