fixed build issues with hipPointerGetAttributes

Change-Id: I3f5fbc05bdaef720884ba949075928752a070377
This commit is contained in:
Aditya Atluri
2017-04-24 15:31:07 -05:00
förälder 72bcfa438b
incheckning 59ab3659ee
+2 -2
Visa fil
@@ -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;