Skip to content

Commit 4b5e559

Browse files
committed
[L0] Fix urProgramLinkExp argument order
Align the `urProgramLinkExp` spec and implementation argument orders to fix Windows link error.
1 parent 26b9829 commit 4b5e559

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/adapters/level_zero/program.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,11 +256,13 @@ UR_APIEXPORT ur_result_t UR_APICALL urProgramLink(
256256
}
257257

258258
UR_APIEXPORT ur_result_t UR_APICALL urProgramLinkExp(
259-
ur_context_handle_t Context, ///< [in] handle of the context instance.
259+
ur_context_handle_t Context, ///< [in] handle of the context instance.
260+
uint32_t numDevices, ///< [in] number of devices
261+
ur_device_handle_t *phDevices, ///< [in][range(0, numDevices)] pointer to
262+
///< array of device handles
260263
uint32_t Count, ///< [in] number of program handles in `phPrograms`.
261264
const ur_program_handle_t *Programs, ///< [in][range(0, count)] pointer to
262265
///< array of program handles.
263-
uint32_t numDevices, ur_device_handle_t *phDevices,
264266
const char *Options, ///< [in][optional] pointer to linker options
265267
///< null-terminated string.
266268
ur_program_handle_t

0 commit comments

Comments
 (0)