SWDEV-422207 - Fix graph catch tests with graph optimizations(DEBUG_CLR_GRAPH_PACKET_CAPTURE enabled)

Change-Id: I16297e0ddde286bf1798c90f2bf846e69819010d
This commit is contained in:
Anusha GodavarthySurya
2023-12-13 07:11:36 +00:00
committed by Anusha Godavarthy Surya
parent fb3dfcf889
commit 2bb2446d8f
2 changed files with 13 additions and 9 deletions
+4 -2
View File
@@ -549,8 +549,10 @@ hipError_t GraphExec::Run(hipStream_t stream) {
for (int i = 0; i < topoOrder_.size() - 1; i++) {
if (DEBUG_CLR_GRAPH_PACKET_CAPTURE && topoOrder_[i]->GetType() == hipGraphNodeTypeKernel) {
hip_stream->vdev()->dispatchAqlPacket(topoOrder_[i]->GetAqlPacket(), accumulate);
accumulate->addKernelName(topoOrder_[i]->GetKernelName());
if (topoOrder_[i]->GetEnabled()) {
hip_stream->vdev()->dispatchAqlPacket(topoOrder_[i]->GetAqlPacket(), accumulate);
accumulate->addKernelName(topoOrder_[i]->GetKernelName());
}
} else {
topoOrder_[i]->SetStream(hip_stream, this);
status = topoOrder_[i]->CreateCommand(topoOrder_[i]->GetQueue());