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
committad av Anusha Godavarthy Surya
förälder 7d3c0c5e10
incheckning 35079e834e
3 ändrade filer med 123 tillägg och 91 borttagningar
+3
Visa fil
@@ -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;