diff --git a/projects/clr/hipamd/src/hip_graph.cpp b/projects/clr/hipamd/src/hip_graph.cpp index 195de03178..d0ba5573a0 100644 --- a/projects/clr/hipamd/src/hip_graph.cpp +++ b/projects/clr/hipamd/src/hip_graph.cpp @@ -1303,7 +1303,7 @@ hipError_t hipStreamUpdateCaptureDependencies(hipStream_t stream, hipGraphNode_t HIP_RETURN(hipErrorInvalidValue); } hip::Stream* s = reinterpret_cast(stream); - if (s->GetCaptureStatus() == hipStreamCaptureStatusActive) { + if (s->GetCaptureStatus() == hipStreamCaptureStatusNone) { HIP_RETURN(hipErrorIllegalState); } if (numDependencies > 0 && dependencies == nullptr) {