From 4e2e28b23c83a86140bfc49633df8df8580aa745 Mon Sep 17 00:00:00 2001 From: Satyanvesh Dittakavi Date: Thu, 17 Mar 2022 09:43:49 +0000 Subject: [PATCH] SWDEV-326800 - hipStreamWaitEvent shouldnt accept flags other than 0 Change-Id: Ic9e2e8e7ac5d34d4286356534810c8e7aa0ee5ad [ROCm/clr commit: 796b8c2b62a7a79c8b614963450c6a10c58fdd62] --- projects/clr/hipamd/src/hip_stream.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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); }