fixed build issues with hipPointerGetAttributes
Change-Id: I3f5fbc05bdaef720884ba949075928752a070377
[ROCm/hip commit: 59ab3659ee]
Ta zmiana jest zawarta w:
%! (template.HTML=
Aditya Atluri)złożyło 2017-04-24 15:31:07 -05:00
1 rodzic
c5840d81ad
złożenie
2b8fbf40a8
Plik 1 zmieniony
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Zablokuj użytkownika