Skip to content

Commit 5b4317c

Browse files
v1.11 Spec Changes for the L0 Loader (#200)
Signed-off-by: Neil R. Spruit <[email protected]> Co-authored-by: Lisanna Dettwyler <[email protected]>
1 parent b757f43 commit 5b4317c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+9866
-2296
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Level zero loader changelog
22

3+
## v1.18.0
4+
* v1.11 Spec Changes for the L0 Loader
5+
* Wrap linker flags on Windows for IntelLLVM
6+
* Ensure validation_layer::context has init before usage
7+
* Replace exception with error string return in zello_log.h
38
## v1.17.45
49
* windows: do not exclude DN_NEED_RESTART drivers if LevelZeroStagedDriverPath is set
510
## v1.17.44

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ message(FATAL_ERROR "Visual Studio Compiler Version >= 1900 Required to build.")
1111
endif()
1212

1313
# This project follows semantic versioning (https://semver.org/)
14-
project(level-zero VERSION 1.17.45)
14+
project(level-zero VERSION 1.18.0)
1515

1616
include(GNUInstallDirs)
1717

include/layers/zel_tracing_register_cb.h

Lines changed: 211 additions & 103 deletions
Large diffs are not rendered by default.

include/ze.py

Lines changed: 257 additions & 161 deletions
Large diffs are not rendered by default.

include/ze_api.h

Lines changed: 875 additions & 644 deletions
Large diffs are not rendered by default.

include/ze_ddi.h

Lines changed: 54 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* SPDX-License-Identifier: MIT
66
*
77
* @file ze_ddi.h
8-
* @version v1.9-r1.9.3
8+
* @version v1.11-r1.11.0
99
*
1010
*/
1111
#ifndef _ZE_DDI_H
@@ -152,11 +152,20 @@ typedef ze_result_t (ZE_APICALL *ze_pfnInit_t)(
152152
ze_init_flags_t
153153
);
154154

155+
///////////////////////////////////////////////////////////////////////////////
156+
/// @brief Function-pointer for zeInitDrivers
157+
typedef ze_result_t (ZE_APICALL *ze_pfnInitDrivers_t)(
158+
uint32_t*,
159+
ze_driver_handle_t*,
160+
ze_init_driver_type_desc_t*
161+
);
162+
155163
///////////////////////////////////////////////////////////////////////////////
156164
/// @brief Table of Global functions pointers
157165
typedef struct _ze_global_dditable_t
158166
{
159167
ze_pfnInit_t pfnInit;
168+
ze_pfnInitDrivers_t pfnInitDrivers;
160169
} ze_global_dditable_t;
161170

162171
///////////////////////////////////////////////////////////////////////////////
@@ -1119,28 +1128,12 @@ typedef ze_result_t (ZE_APICALL *ze_pfnGetCommandListProcAddrTable_t)(
11191128
);
11201129

11211130
///////////////////////////////////////////////////////////////////////////////
1122-
/// @brief Function-pointer for zeCommandListCreateCloneExp
1123-
typedef ze_result_t (ZE_APICALL *ze_pfnCommandListCreateCloneExp_t)(
1124-
ze_command_list_handle_t,
1125-
ze_command_list_handle_t*
1126-
);
1127-
1128-
///////////////////////////////////////////////////////////////////////////////
1129-
/// @brief Function-pointer for zeCommandListImmediateAppendCommandListsExp
1130-
typedef ze_result_t (ZE_APICALL *ze_pfnCommandListImmediateAppendCommandListsExp_t)(
1131-
ze_command_list_handle_t,
1132-
uint32_t,
1133-
ze_command_list_handle_t*,
1134-
ze_event_handle_t,
1135-
uint32_t,
1136-
ze_event_handle_t*
1137-
);
1138-
1139-
///////////////////////////////////////////////////////////////////////////////
1140-
/// @brief Function-pointer for zeCommandListGetNextCommandIdExp
1141-
typedef ze_result_t (ZE_APICALL *ze_pfnCommandListGetNextCommandIdExp_t)(
1131+
/// @brief Function-pointer for zeCommandListGetNextCommandIdWithKernelsExp
1132+
typedef ze_result_t (ZE_APICALL *ze_pfnCommandListGetNextCommandIdWithKernelsExp_t)(
11421133
ze_command_list_handle_t,
11431134
const ze_mutable_command_id_exp_desc_t*,
1135+
uint32_t,
1136+
ze_kernel_handle_t*,
11441137
uint64_t*
11451138
);
11461139

@@ -1159,6 +1152,30 @@ typedef ze_result_t (ZE_APICALL *ze_pfnCommandListUpdateMutableCommandSignalEven
11591152
ze_event_handle_t
11601153
);
11611154

1155+
///////////////////////////////////////////////////////////////////////////////
1156+
/// @brief Function-pointer for zeCommandListUpdateMutableCommandKernelsExp
1157+
typedef ze_result_t (ZE_APICALL *ze_pfnCommandListUpdateMutableCommandKernelsExp_t)(
1158+
ze_command_list_handle_t,
1159+
uint32_t,
1160+
uint64_t*,
1161+
ze_kernel_handle_t*
1162+
);
1163+
1164+
///////////////////////////////////////////////////////////////////////////////
1165+
/// @brief Function-pointer for zeCommandListCreateCloneExp
1166+
typedef ze_result_t (ZE_APICALL *ze_pfnCommandListCreateCloneExp_t)(
1167+
ze_command_list_handle_t,
1168+
ze_command_list_handle_t*
1169+
);
1170+
1171+
///////////////////////////////////////////////////////////////////////////////
1172+
/// @brief Function-pointer for zeCommandListGetNextCommandIdExp
1173+
typedef ze_result_t (ZE_APICALL *ze_pfnCommandListGetNextCommandIdExp_t)(
1174+
ze_command_list_handle_t,
1175+
const ze_mutable_command_id_exp_desc_t*,
1176+
uint64_t*
1177+
);
1178+
11621179
///////////////////////////////////////////////////////////////////////////////
11631180
/// @brief Function-pointer for zeCommandListUpdateMutableCommandWaitEventsExp
11641181
typedef ze_result_t (ZE_APICALL *ze_pfnCommandListUpdateMutableCommandWaitEventsExp_t)(
@@ -1168,16 +1185,29 @@ typedef ze_result_t (ZE_APICALL *ze_pfnCommandListUpdateMutableCommandWaitEvents
11681185
ze_event_handle_t*
11691186
);
11701187

1188+
///////////////////////////////////////////////////////////////////////////////
1189+
/// @brief Function-pointer for zeCommandListImmediateAppendCommandListsExp
1190+
typedef ze_result_t (ZE_APICALL *ze_pfnCommandListImmediateAppendCommandListsExp_t)(
1191+
ze_command_list_handle_t,
1192+
uint32_t,
1193+
ze_command_list_handle_t*,
1194+
ze_event_handle_t,
1195+
uint32_t,
1196+
ze_event_handle_t*
1197+
);
1198+
11711199
///////////////////////////////////////////////////////////////////////////////
11721200
/// @brief Table of CommandListExp functions pointers
11731201
typedef struct _ze_command_list_exp_dditable_t
11741202
{
1175-
ze_pfnCommandListCreateCloneExp_t pfnCreateCloneExp;
1176-
ze_pfnCommandListImmediateAppendCommandListsExp_t pfnImmediateAppendCommandListsExp;
1177-
ze_pfnCommandListGetNextCommandIdExp_t pfnGetNextCommandIdExp;
1203+
ze_pfnCommandListGetNextCommandIdWithKernelsExp_t pfnGetNextCommandIdWithKernelsExp;
11781204
ze_pfnCommandListUpdateMutableCommandsExp_t pfnUpdateMutableCommandsExp;
11791205
ze_pfnCommandListUpdateMutableCommandSignalEventExp_t pfnUpdateMutableCommandSignalEventExp;
1206+
ze_pfnCommandListUpdateMutableCommandKernelsExp_t pfnUpdateMutableCommandKernelsExp;
1207+
ze_pfnCommandListCreateCloneExp_t pfnCreateCloneExp;
1208+
ze_pfnCommandListGetNextCommandIdExp_t pfnGetNextCommandIdExp;
11801209
ze_pfnCommandListUpdateMutableCommandWaitEventsExp_t pfnUpdateMutableCommandWaitEventsExp;
1210+
ze_pfnCommandListImmediateAppendCommandListsExp_t pfnImmediateAppendCommandListsExp;
11811211
} ze_command_list_exp_dditable_t;
11821212

11831213
///////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)