mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-12 00:59:38 +08:00
feature: add patch preamble to graphs
Related-To: NEO-15376 Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
259271f59d
commit
1316330ff9
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user