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


[ROCm/clr commit: 35079e834e]
This commit is contained in:
Anusha GodavarthySurya authored and Anusha Godavarthy Surya committed 2024-07-16 08:38:44 -04:00
1 parent 2e7581a69a
commit b6d82323e9
3 files changed
+123 -91

No files matched your search

+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;