diff --git a/projects/clr/hipamd/src/hip_context.cpp b/projects/clr/hipamd/src/hip_context.cpp index f22ae22859..824e69598a 100644 --- a/projects/clr/hipamd/src/hip_context.cpp +++ b/projects/clr/hipamd/src/hip_context.cpp @@ -143,6 +143,10 @@ using namespace hip; hipError_t hipInit(unsigned int flags) { HIP_INIT_API(hipInit, flags); + if (flags != 0) { + HIP_RETURN(hipErrorInvalidValue); + } + HIP_RETURN(hipSuccess); }