Merge pull request #797 from gargrahul/fixhipPointerGetAttributes

Fixed hipPointerGetAttributes for hostmalloced ptr

[ROCm/clr commit: a778f7cdf7]
Этот коммит содержится в:
Maneesh Gupta
2018-12-12 10:16:07 +05:30
коммит произвёл GitHub
родитель 30ce297635 514e5a41e3
Коммит f096437107
+2 -2
Просмотреть файл
@@ -187,14 +187,14 @@ hipError_t hipPointerGetAttributes(hipPointerAttribute_t* attributes, const void
attributes->allocationFlags = amPointerInfo._appAllocationFlags;
attributes->device = amPointerInfo._appId;
if (attributes->device < 0) {
if (attributes->device < -1) {
e = hipErrorInvalidDevice;
}
} else {
attributes->memoryType = hipMemoryTypeDevice;
attributes->hostPointer = 0;
attributes->devicePointer = 0;
attributes->device = -1;
attributes->device = -2;
attributes->isManaged = 0;
attributes->allocationFlags = 0;