Skip to content

Commit 00cd27c

Browse files
committed
Add launchPropList to arguments of appendKernelLaunchWithArgsExpNew()
After replacing `urEnqueueKernelLaunch()` property list with `pNext` chain property structures (commit 66b3b53) the `appendKernelLaunchWithArgsExpNew()` function will need the list of properities, so add `launchPropList` to arguments of `appendKernelLaunchWithArgsExpNew()` (like in `appendKernelLaunchWithArgsExpOld()`). It is a preparation for future changes. Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
1 parent ceae49b commit 00cd27c

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

unified-runtime/source/adapters/level_zero/v2/command_list_manager.cpp

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,9 +1141,12 @@ ur_result_t ur_command_list_manager::appendKernelLaunchWithArgsExpNew(
11411141
ur_kernel_handle_t hKernel, uint32_t workDim,
11421142
const size_t *pGlobalWorkOffset, const size_t *pGlobalWorkSize,
11431143
const size_t *pLocalWorkSize, uint32_t numArgs,
1144-
const ur_exp_kernel_arg_properties_t *pArgs, uint32_t numEventsInWaitList,
1145-
const ur_event_handle_t *phEventWaitList, ur_event_handle_t phEvent,
1146-
bool cooperativeKernelLaunchRequested) {
1144+
const ur_exp_kernel_arg_properties_t *pArgs,
1145+
const ur_kernel_launch_ext_properties_t *launchPropList,
1146+
uint32_t numEventsInWaitList, const ur_event_handle_t *phEventWaitList,
1147+
ur_event_handle_t phEvent, bool cooperativeKernelLaunchRequested) {
1148+
1149+
(void)launchPropList; // unused variable
11471150

11481151
ur_result_t checkResult = kernelLaunchChecks(hKernel, workDim);
11491152
if (checkResult != UR_RESULT_SUCCESS) {
@@ -1259,8 +1262,8 @@ ur_result_t ur_command_list_manager::appendKernelLaunchWithArgsExp(
12591262
if (RunNewPath) {
12601263
return appendKernelLaunchWithArgsExpNew(
12611264
hKernel, workDim, pGlobalWorkOffset, pGlobalWorkSize, pLocalWorkSize,
1262-
numArgs, pArgs, numEventsInWaitList, phEventWaitList, phEvent,
1263-
cooperativeKernelLaunchRequested);
1265+
numArgs, pArgs, launchPropList, numEventsInWaitList, phEventWaitList,
1266+
phEvent, cooperativeKernelLaunchRequested);
12641267
} else {
12651268
// We cannot pass cooperativeKernelLaunchRequested to
12661269
// appendKernelLaunchWithArgsExpOld() because appendKernelLaunch() must

unified-runtime/source/adapters/level_zero/v2/command_list_manager.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,10 @@ struct ur_command_list_manager {
256256
ur_kernel_handle_t hKernel, uint32_t workDim,
257257
const size_t *pGlobalWorkOffset, const size_t *pGlobalWorkSize,
258258
const size_t *pLocalWorkSize, uint32_t numArgs,
259-
const ur_exp_kernel_arg_properties_t *pArgs, uint32_t numEventsInWaitList,
260-
const ur_event_handle_t *phEventWaitList, ur_event_handle_t phEvent,
261-
bool cooperativeKernelLaunchRequested);
259+
const ur_exp_kernel_arg_properties_t *pArgs,
260+
const ur_kernel_launch_ext_properties_t *launchPropList,
261+
uint32_t numEventsInWaitList, const ur_event_handle_t *phEventWaitList,
262+
ur_event_handle_t phEvent, bool cooperativeKernelLaunchRequested);
262263

263264
ur_result_t appendGenericCommandListsExp(
264265
uint32_t numCommandLists, ze_command_list_handle_t *phCommandLists,

0 commit comments

Comments
 (0)