From 9caddbf38ab3584d1ee040375f7fad85da6879df Mon Sep 17 00:00:00 2001 From: Sourabh Betigeri Date: Wed, 13 Apr 2022 18:51:06 -0700 Subject: [PATCH] SWDEV-331301 - Fixes error code mismatch Change-Id: I8dda98609b16ea5c1ce4d9db9471e61e5fb0c12c [ROCm/clr commit: bd851550bdb4db60a37ddb167e0364f176ead228] --- projects/clr/hipamd/src/hip_graph.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/clr/hipamd/src/hip_graph.cpp b/projects/clr/hipamd/src/hip_graph.cpp index 5dde734093..c2378730cf 100644 --- a/projects/clr/hipamd/src/hip_graph.cpp +++ b/projects/clr/hipamd/src/hip_graph.cpp @@ -1241,9 +1241,9 @@ hipError_t hipGraphExecChildGraphNodeSetParams(hipGraphExec_t hGraphExec, hipGra hipGraphNode_t hipErrorNode_out; hipGraphExecUpdateResult updateResult_out; // Check if this instantiated graph is updatable. All restrictions in hipGraphExecUpdate() apply. - if (hipGraphExecUpdate(hGraphExec, childGraph, &hipErrorNode_out, &updateResult_out) == - hipErrorGraphExecUpdateFailure) { - HIP_RETURN(hipErrorUnknown); + hipError_t status = hipGraphExecUpdate(hGraphExec, childGraph, &hipErrorNode_out, &updateResult_out); + if (status != hipSuccess) { + HIP_RETURN(status); } hipGraphNode_t clonedNode = hGraphExec->GetClonedNode(node);