From 4499ded6686503493af7890bfe0083acdbe0eecb Mon Sep 17 00:00:00 2001 From: Anusha GodavarthySurya Date: Fri, 16 Feb 2024 13:54:29 +0000 Subject: [PATCH] SWDEV-445981 - Handle hipGraphExecUpdate to update graph kernel node params with graph performance optimizations Change-Id: I3b05c6bfc83404152bcae9b31cfdf56af7cc61a4 [ROCm/clr commit: 4b4ec7fc52c77c56427ce69d9433590fc8a43ed9] --- projects/clr/hipamd/src/hip_graph.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/projects/clr/hipamd/src/hip_graph.cpp b/projects/clr/hipamd/src/hip_graph.cpp index fa0b56087e..417b515b09 100644 --- a/projects/clr/hipamd/src/hip_graph.cpp +++ b/projects/clr/hipamd/src/hip_graph.cpp @@ -2335,6 +2335,11 @@ hipError_t hipGraphExecUpdate(hipGraphExec_t hGraphExec, hipGraph_t hGraph, *updateResult_out = hipGraphExecUpdateErrorNotSupported; } HIP_RETURN(hipErrorGraphExecUpdateFailure); + } else if (DEBUG_CLR_GRAPH_PACKET_CAPTURE && + oldGraphExecNodes[i]->GetType() == hipGraphNodeTypeKernel) { + status = + reinterpret_cast(hGraphExec) + ->UpdateAQLPacket(reinterpret_cast(oldGraphExecNodes[i])); } } else { *hErrorNode_out = reinterpret_cast(newGraphNodes[i]);