From 057bcc73f1c18d4fabea4d6dfc3acf1e50a9f607 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/hip commit: b6e34a44b0f4e7c123ddc0e20bdf64713c25f93e] --- projects/hip/src/hip_hcc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/hip/src/hip_hcc.cpp b/projects/hip/src/hip_hcc.cpp index 1cf8745c0b..b6fbe5b383 100644 --- a/projects/hip/src/hip_hcc.cpp +++ b/projects/hip/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);