diff --git a/hipamd/src/hip_memory.cpp b/hipamd/src/hip_memory.cpp index edf5192f5f..44ba6e2b32 100644 --- a/hipamd/src/hip_memory.cpp +++ b/hipamd/src/hip_memory.cpp @@ -674,7 +674,7 @@ hipError_t hipMemGetInfo(size_t* free, size_t* total) { HIP_INIT_API(hipMemGetInfo, free, total); if (free == nullptr && total == nullptr) { - HIP_RETURN(hipErrorInvalidValue); + HIP_RETURN(hipSuccess); } size_t freeMemory[2];