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:
committed by
Anusha Godavarthy Surya
parent
7d3c0c5e10
commit
35079e834e
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user