From d29a3ae502b752cccdfd50a3e10a8609594cd252 Mon Sep 17 00:00:00 2001 From: Sourabh Betigeri Date: Thu, 17 Mar 2022 17:39:03 -0700 Subject: [PATCH] SWDEV-320640 - Fix to return the right error code when the stream is not in capture mode Change-Id: Id2f296e0cbf5f90a8163441f4c69c72615dd90a0 [ROCm/clr commit: 02838eb2368cda9468bcf50920e00065be9135b3] --- projects/clr/hipamd/src/hip_graph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {