From aa4f1b31dfdf0020ddba080e0f9faa685fe1750e Mon Sep 17 00:00:00 2001 From: Anusha GodavarthySurya Date: Fri, 8 Nov 2024 12:00:53 +0000 Subject: [PATCH] SWDEV-491643 - DEBUG_HIP_FORCE_GRAPH_QUEUES is 1 enable capture path Change-Id: Ibddd50592232b090bf5eab8395fe78a36bb3a14a [ROCm/clr commit: 25a893658a3ad7d10c752f84453f29a7cafebfd8] --- projects/clr/hipamd/src/hip_graph.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/projects/clr/hipamd/src/hip_graph.cpp b/projects/clr/hipamd/src/hip_graph.cpp index 1c8dc895ae..bc0c5a9908 100644 --- a/projects/clr/hipamd/src/hip_graph.cpp +++ b/projects/clr/hipamd/src/hip_graph.cpp @@ -1354,7 +1354,11 @@ hipError_t ihipGraphInstantiate(hip::GraphExec** pGraphExec, hip::Graph* graph, } std::vector> parallelLists; std::unordered_map> nodeWaitLists; - clonedGraph->GetRunList(parallelLists, nodeWaitLists); + if (DEBUG_HIP_FORCE_GRAPH_QUEUES == 1) { + parallelLists.push_back(graphNodes); + } else { + clonedGraph->GetRunList(parallelLists, nodeWaitLists); + } if (DEBUG_HIP_FORCE_GRAPH_QUEUES != 0) { clonedGraph->ScheduleNodes(); }