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
Этот коммит содержится в:
Anusha GodavarthySurya
2024-07-04 08:49:35 +00:00
коммит произвёл Anusha Godavarthy Surya
родитель 7d3c0c5e10
Коммит 35079e834e
3 изменённых файлов: 123 добавлений и 91 удалений
+3
Просмотреть файл
@@ -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;