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); }