From 59ab3659eefa03aea48934ff898d4d0d320a0bc8 Mon Sep 17 00:00:00 2001 From: Aditya Atluri Date: Mon, 24 Apr 2017 15:31:07 -0500 Subject: [PATCH] fixed build issues with hipPointerGetAttributes Change-Id: I3f5fbc05bdaef720884ba949075928752a070377 --- src/hip_memory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hip_memory.cpp b/src/hip_memory.cpp index f7421f9818..b706426efb 100644 --- a/src/hip_memory.cpp +++ b/src/hip_memory.cpp @@ -149,10 +149,10 @@ hipError_t hipPointerGetAttributes(hipPointerAttribute_t *attributes, const void attributes->devicePointer = amPointerInfo._devicePointer; attributes->isManaged = 0; if(attributes->memoryType == hipMemoryTypeHost){ - attributes->hostPointer = ptr; + attributes->hostPointer = (void*)ptr; } if(attributes->memoryType == hipMemoryTypeDevice){ - attributes->devicePointer = ptr; + attributes->devicePointer = (void*)ptr; } attributes->allocationFlags = amPointerInfo._appAllocationFlags; attributes->device = amPointerInfo._appId;