From 483aab031faf02c4888b8f32829c265820745fad Mon Sep 17 00:00:00 2001 From: Rahul Garg Date: Wed, 31 Jul 2019 00:28:30 +0530 Subject: [PATCH] Change hipErrorUnknown to hipErrorInvalidValue --- src/hip_memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hip_memory.cpp b/src/hip_memory.cpp index 2355772fd6..99ea4b5b24 100644 --- a/src/hip_memory.cpp +++ b/src/hip_memory.cpp @@ -198,7 +198,7 @@ hipError_t hipPointerGetAttributes(hipPointerAttribute_t* attributes, const void attributes->isManaged = 0; attributes->allocationFlags = 0; - e = hipErrorUnknown; // TODO - should be hipErrorInvalidValue ? + e = hipErrorInvalidValue; } } return ihipLogStatus(e);