From b6e34a44b0f4e7c123ddc0e20bdf64713c25f93e Mon Sep 17 00:00:00 2001 From: Aditya Avinash Atluri Date: Thu, 3 Mar 2016 13:58:18 -0600 Subject: [PATCH] Fix output of hipPointerGetAttributes The output of hipPointerGetAttributes is fixed to match CUDA counterpart. --- src/hip_hcc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hip_hcc.cpp b/src/hip_hcc.cpp index 1cf8745c0b..b6fbe5b383 100644 --- a/src/hip_hcc.cpp +++ b/src/hip_hcc.cpp @@ -1826,10 +1826,10 @@ hipError_t hipPointerGetAttributes(hipPointerAttribute_t *attributes, void* ptr) attributes->isManaged = 0; attributes->allocationFlags = 0; - e = hipErrorInvalidValue; + e = hipErrorUnknown; } #else - e = hipErrorInvalidValue; + e = hipErrorInvalidDevice; #endif return ihipLogStatus(e);