SWDEV-468424 - Refactor kernel arg

For refactoring of childGraph to have its own graphExec,
kernelArgs needs to be separated from the graphExec object.
All the childNodes part of graph should share same kernelArg pool.
Otherwise we endup creating multiple device kernel arg memory chucks
for single graphExec.

Change-Id: I4029a46ebc1fa112d87df64ab1fecbf288fabe5e
This commit is contained in:
Anusha GodavarthySurya
2024-07-04 08:49:35 +00:00
committed by Anusha Godavarthy Surya
parent 7d3c0c5e10
commit 35079e834e
3 changed files with 123 additions and 91 deletions
+3
View File
@@ -1320,6 +1320,9 @@ hipError_t ihipGraphInstantiate(hip::GraphExec** pGraphExec, hip::Graph* graph,
LogPrintfInfo("[hipGraph] graph dump:%s", filename.c_str());
}
}
if (DEBUG_CLR_GRAPH_PACKET_CAPTURE) {
(*pGraphExec)->SetKernelArgManager(new hip::GraphKernelArgManager());
}
return (*pGraphExec)->Init();
} else {
return hipErrorOutOfMemory;