From ea5838320e31a7810bdca18be19da29da296a049 Mon Sep 17 00:00:00 2001 From: sdashmiz Date: Fri, 17 Feb 2023 14:21:59 -0500 Subject: [PATCH] SWDEV-379388 - remove check for all streams done - cuda shows a different behaviour and different error need more investigation Signed-off-by: sdashmiz Change-Id: I68771102ba4dff6157bca34a4135cb245f023d08 --- hipamd/src/hip_event.cpp | 3 --- hipamd/src/hip_stream.cpp | 6 ------ 2 files changed, 9 deletions(-) diff --git a/hipamd/src/hip_event.cpp b/hipamd/src/hip_event.cpp index 7ddac56089..747b69ce2f 100644 --- a/hipamd/src/hip_event.cpp +++ b/hipamd/src/hip_event.cpp @@ -410,9 +410,6 @@ hipError_t hipEventSynchronize(hipEvent_t event) { HIP_RETURN(hipErrorInvalidHandle); } - if (hip::Stream::StreamCaptureOngoing() == true) { - HIP_RETURN(hipErrorStreamCaptureUnsupported); - } hip::Event* e = reinterpret_cast(event); HIP_RETURN(e->synchronize()); } diff --git a/hipamd/src/hip_stream.cpp b/hipamd/src/hip_stream.cpp index 80ea30133b..1342ac7270 100644 --- a/hipamd/src/hip_stream.cpp +++ b/hipamd/src/hip_stream.cpp @@ -502,12 +502,6 @@ hipError_t hipStreamWaitEvent_common(hipStream_t stream, hipEvent_t event, unsig return hipErrorContextIsDestroyed; } - if (stream != nullptr) { - // If still capturing return error - if (hip::Stream::StreamCaptureOngoing() == true) { - HIP_RETURN(hipErrorStreamCaptureIsolation); - } - } hip::Event* e = reinterpret_cast(event); return e->streamWait(stream, flags); }