Let hipHostMalloc always share/map pinned host ptr

이 커밋은 다음에 포함됨:
Rahul Garg가 2019-03-26 10:19:13 +05:30를 커밋했습니다
1 부모 ad11972f47
커밋 9b38380c03
1 파일이 변경됨
+1 -1
+1 -1
파일 보기
@@ -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;