Corrected hipPointerGetAttribute

Made hipPointerGetAttribute work same as cudaPointerGetAttribute for HCC
이 커밋은 다음에 포함됨:
Aditya Avinash Atluri
2016-02-26 18:50:40 -06:00
부모 a31f878218
커밋 2ca6162593
+6 -1
파일 보기
@@ -1732,7 +1732,12 @@ hipError_t hipPointerGetAttributes(hipPointerAttribute_t *attributes, void* ptr)
attributes->hostPointer = amPointerInfo._hostPointer;
attributes->devicePointer = amPointerInfo._devicePointer;
attributes->isManaged = 0;
if(attributes->memoryType == hipMemoryTypeHost){
attributes->hostPointer = ptr;
}
if(attributes->memoryType == hipMemoryTypeDevice){
attributes->devicePointer = ptr;
}
attributes->allocationFlags = amPointerInfo._appAllocationFlags;
attributes->device = amPointerInfo._appId;