diff --git a/src/hip_hcc.cpp b/src/hip_hcc.cpp index b6fbe5b383..897253c8c5 100644 --- a/src/hip_hcc.cpp +++ b/src/hip_hcc.cpp @@ -1829,7 +1829,7 @@ hipError_t hipPointerGetAttributes(hipPointerAttribute_t *attributes, void* ptr) e = hipErrorUnknown; } #else - e = hipErrorInvalidDevice; + e = hipErrorInvalidValue; #endif return ihipLogStatus(e);