fixed build issues with hipPointerGetAttributes

Change-Id: I3f5fbc05bdaef720884ba949075928752a070377


[ROCm/clr commit: 1f532b06f6]
Tá an tiomantas seo le fáil i:
Aditya Atluri tiomanta 2017-04-24 15:31:07 -05:00
1 tuismitheoir 119f5a1e67
tiomantas 8d9e22c975
1 comhad athraithe
+2 -2
+2 -2
Féach ar an gComhad
@@ -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;