diff --git a/projects/clr/hipamd/src/hip_stream.cpp b/projects/clr/hipamd/src/hip_stream.cpp index f49c5d207e..84d6f60e9a 100644 --- a/projects/clr/hipamd/src/hip_stream.cpp +++ b/projects/clr/hipamd/src/hip_stream.cpp @@ -457,6 +457,10 @@ hipError_t hipStreamWaitEvent(hipStream_t stream, hipEvent_t event, unsigned int HIP_RETURN(hipErrorInvalidHandle); } + if (flags != 0) { + HIP_RETURN(hipErrorInvalidValue); + } + if (!hip::isValid(stream)) { HIP_RETURN(hipErrorContextIsDestroyed); }