feature: add patch preamble to graphs

Related-To: NEO-15376

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2025-08-14 09:55:35 +00:00
committed by Compute-Runtime-Automation
parent 259271f59d
commit 1316330ff9
8 changed files with 180 additions and 27 deletions

View File

@@ -399,7 +399,9 @@ ze_result_t ExecutableGraph::execute(L0::CommandList *executionTarget, void *pNe
auto currSignalEvent = (myLastCommandList == *cmdList) ? hSignalEvent : nullptr;
ze_command_list_handle_t hCmdList = *cmdList;
executionTarget->setPatchingPreamble(true);
auto res = executionTarget->appendCommandLists(1, &hCmdList, currSignalEvent, numWaitEvents, phWaitEvents);
executionTarget->setPatchingPreamble(false);
if (ZE_RESULT_SUCCESS != res) {
return res;
}
@@ -409,7 +411,9 @@ ze_result_t ExecutableGraph::execute(L0::CommandList *executionTarget, void *pNe
if (L0::CommandList **cmdList = std::get_if<L0::CommandList *>(&this->submissionChain[submissioNodeId])) {
auto currSignalEvent = (myLastCommandList == *cmdList) ? hSignalEvent : nullptr;
ze_command_list_handle_t hCmdList = *cmdList;
executionTarget->setPatchingPreamble(true);
auto res = executionTarget->appendCommandLists(1, &hCmdList, currSignalEvent, 0, nullptr);
executionTarget->setPatchingPreamble(false);
if (ZE_RESULT_SUCCESS != res) {
return res;
}