From 33497678f2800c2072fd6fa797cda37094173857 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. [ROCm/clr commit: 7b868eb274dcfd012bf16ed04050383dd812f828] --- projects/clr/hipamd/src/hip_hcc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/clr/hipamd/src/hip_hcc.cpp b/projects/clr/hipamd/src/hip_hcc.cpp index 1cf8745c0b..b6fbe5b383 100644 --- a/projects/clr/hipamd/src/hip_hcc.cpp +++ b/projects/clr/hipamd/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);