refactor: unify cooperative cmd list launch functions

Related-To: NEO-11621

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2024-06-20 12:03:27 +00:00
committed by Compute-Runtime-Automation
parent 78c7d8878d
commit 45cf88077b
15 changed files with 108 additions and 112 deletions

View File

@@ -162,7 +162,11 @@ ze_result_t zeCommandListAppendLaunchCooperativeKernel(
ze_event_handle_t hSignalEvent,
uint32_t numWaitEvents,
ze_event_handle_t *phWaitEvents) {
return L0::CommandList::fromHandle(hCommandList)->appendLaunchCooperativeKernel(kernelHandle, *launchKernelArgs, hSignalEvent, numWaitEvents, phWaitEvents, false);
L0::CmdListKernelLaunchParams launchParams = {};
launchParams.isCooperative = true;
return L0::CommandList::fromHandle(hCommandList)->appendLaunchKernel(kernelHandle, *launchKernelArgs, hSignalEvent, numWaitEvents, phWaitEvents, launchParams, false);
}
ze_result_t zeCommandListAppendLaunchKernelIndirect(