Skip to content

Commit ea23d52

Browse files
committed
feature: Update to support L0 Spec v1.15.26
Signed-off-by: Neil R. Spruit <[email protected]>
1 parent 354190c commit ea23d52

Some content is hidden

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

50 files changed

+11571
-269
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
# Level zero loader changelog
2+
## v1.27.0
3+
* feature: Update to support L0 Spec v1.15.26
4+
* fix: fix Driver Search Paths for all Linux Distros
5+
* Fix minor performance issues with variable copy
6+
* feature: Add zelGetTracingLayerState to query if tracing is enabled
7+
* Checker: System Resource Monitor
8+
* Fix minor performance issue with leak checker destroy
29
## v1.26.3
310
* fix handling of optional DDI tables missing or incorrect
411
## v1.26.2

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if(MSVC AND (MSVC_VERSION LESS 1900))
1313
endif()
1414

1515
# This project follows semantic versioning (https://semver.org/)
16-
project(level-zero VERSION 1.26.3)
16+
project(level-zero VERSION 1.27.0)
1717
include(GNUInstallDirs)
1818

1919
find_package(Git)

PRODUCT_GUID.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
1.26.3
2-
d1ed32f4-2b7d-4718-9f86-69cbae2c1836
1+
1.27.0
2+
ed00a7db-f557-48c2-9f90-c1f97b56ad91

include/layers/zel_tracing_register_cb.h

Lines changed: 278 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -782,6 +782,32 @@ typedef void (ZE_APICALL *ze_pfnDeviceSynchronizeCb_t)(
782782
void** ppTracerInstanceUserData
783783
);
784784

785+
///////////////////////////////////////////////////////////////////////////////
786+
/// @brief Callback function parameters for zeDeviceGetAggregatedCopyOffloadIncrementValue
787+
/// @details Each entry is a pointer to the parameter passed to the function;
788+
/// allowing the callback the ability to modify the parameter's value
789+
790+
typedef struct _ze_device_get_aggregated_copy_offload_increment_value_params_t
791+
{
792+
ze_device_handle_t* phDevice;
793+
uint32_t** pincrementValue;
794+
} ze_device_get_aggregated_copy_offload_increment_value_params_t;
795+
796+
797+
///////////////////////////////////////////////////////////////////////////////
798+
/// @brief Callback function-pointer for zeDeviceGetAggregatedCopyOffloadIncrementValue
799+
/// @param[in] params Parameters passed to this instance
800+
/// @param[in] result Return value
801+
/// @param[in] pTracerUserData Per-Tracer user data
802+
/// @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data
803+
804+
typedef void (ZE_APICALL *ze_pfnDeviceGetAggregatedCopyOffloadIncrementValueCb_t)(
805+
ze_device_get_aggregated_copy_offload_increment_value_params_t* params,
806+
ze_result_t result,
807+
void* pTracerUserData,
808+
void** ppTracerInstanceUserData
809+
);
810+
785811
///////////////////////////////////////////////////////////////////////////////
786812
/// @brief Callback function parameters for zeDeviceReserveCacheExt
787813
/// @details Each entry is a pointer to the parameter passed to the function;
@@ -1565,6 +1591,139 @@ typedef void (ZE_APICALL *ze_pfnCommandListUpdateMutableCommandWaitEventsExpCb_t
15651591
void** ppTracerInstanceUserData
15661592
);
15671593

1594+
///////////////////////////////////////////////////////////////////////////////
1595+
/// @brief Callback function parameters for zeEventCounterBasedCreate
1596+
/// @details Each entry is a pointer to the parameter passed to the function;
1597+
/// allowing the callback the ability to modify the parameter's value
1598+
1599+
typedef struct _ze_event_counter_based_create_params_t
1600+
{
1601+
ze_context_handle_t* phContext;
1602+
ze_device_handle_t* phDevice;
1603+
const ze_event_counter_based_desc_t** pdesc;
1604+
ze_event_handle_t** pphEvent;
1605+
} ze_event_counter_based_create_params_t;
1606+
1607+
1608+
///////////////////////////////////////////////////////////////////////////////
1609+
/// @brief Callback function-pointer for zeEventCounterBasedCreate
1610+
/// @param[in] params Parameters passed to this instance
1611+
/// @param[in] result Return value
1612+
/// @param[in] pTracerUserData Per-Tracer user data
1613+
/// @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data
1614+
1615+
typedef void (ZE_APICALL *ze_pfnEventCounterBasedCreateCb_t)(
1616+
ze_event_counter_based_create_params_t* params,
1617+
ze_result_t result,
1618+
void* pTracerUserData,
1619+
void** ppTracerInstanceUserData
1620+
);
1621+
1622+
///////////////////////////////////////////////////////////////////////////////
1623+
/// @brief Callback function parameters for zeEventCounterBasedGetIpcHandle
1624+
/// @details Each entry is a pointer to the parameter passed to the function;
1625+
/// allowing the callback the ability to modify the parameter's value
1626+
1627+
typedef struct _ze_event_counter_based_get_ipc_handle_params_t
1628+
{
1629+
ze_event_handle_t* phEvent;
1630+
ze_ipc_event_counter_based_handle_t** pphIpc;
1631+
} ze_event_counter_based_get_ipc_handle_params_t;
1632+
1633+
1634+
///////////////////////////////////////////////////////////////////////////////
1635+
/// @brief Callback function-pointer for zeEventCounterBasedGetIpcHandle
1636+
/// @param[in] params Parameters passed to this instance
1637+
/// @param[in] result Return value
1638+
/// @param[in] pTracerUserData Per-Tracer user data
1639+
/// @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data
1640+
1641+
typedef void (ZE_APICALL *ze_pfnEventCounterBasedGetIpcHandleCb_t)(
1642+
ze_event_counter_based_get_ipc_handle_params_t* params,
1643+
ze_result_t result,
1644+
void* pTracerUserData,
1645+
void** ppTracerInstanceUserData
1646+
);
1647+
1648+
///////////////////////////////////////////////////////////////////////////////
1649+
/// @brief Callback function parameters for zeEventCounterBasedOpenIpcHandle
1650+
/// @details Each entry is a pointer to the parameter passed to the function;
1651+
/// allowing the callback the ability to modify the parameter's value
1652+
1653+
typedef struct _ze_event_counter_based_open_ipc_handle_params_t
1654+
{
1655+
ze_context_handle_t* phContext;
1656+
ze_ipc_event_counter_based_handle_t* phIpc;
1657+
ze_event_handle_t** pphEvent;
1658+
} ze_event_counter_based_open_ipc_handle_params_t;
1659+
1660+
1661+
///////////////////////////////////////////////////////////////////////////////
1662+
/// @brief Callback function-pointer for zeEventCounterBasedOpenIpcHandle
1663+
/// @param[in] params Parameters passed to this instance
1664+
/// @param[in] result Return value
1665+
/// @param[in] pTracerUserData Per-Tracer user data
1666+
/// @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data
1667+
1668+
typedef void (ZE_APICALL *ze_pfnEventCounterBasedOpenIpcHandleCb_t)(
1669+
ze_event_counter_based_open_ipc_handle_params_t* params,
1670+
ze_result_t result,
1671+
void* pTracerUserData,
1672+
void** ppTracerInstanceUserData
1673+
);
1674+
1675+
///////////////////////////////////////////////////////////////////////////////
1676+
/// @brief Callback function parameters for zeEventCounterBasedCloseIpcHandle
1677+
/// @details Each entry is a pointer to the parameter passed to the function;
1678+
/// allowing the callback the ability to modify the parameter's value
1679+
1680+
typedef struct _ze_event_counter_based_close_ipc_handle_params_t
1681+
{
1682+
ze_event_handle_t* phEvent;
1683+
} ze_event_counter_based_close_ipc_handle_params_t;
1684+
1685+
1686+
///////////////////////////////////////////////////////////////////////////////
1687+
/// @brief Callback function-pointer for zeEventCounterBasedCloseIpcHandle
1688+
/// @param[in] params Parameters passed to this instance
1689+
/// @param[in] result Return value
1690+
/// @param[in] pTracerUserData Per-Tracer user data
1691+
/// @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data
1692+
1693+
typedef void (ZE_APICALL *ze_pfnEventCounterBasedCloseIpcHandleCb_t)(
1694+
ze_event_counter_based_close_ipc_handle_params_t* params,
1695+
ze_result_t result,
1696+
void* pTracerUserData,
1697+
void** ppTracerInstanceUserData
1698+
);
1699+
1700+
///////////////////////////////////////////////////////////////////////////////
1701+
/// @brief Callback function parameters for zeEventCounterBasedGetDeviceAddress
1702+
/// @details Each entry is a pointer to the parameter passed to the function;
1703+
/// allowing the callback the ability to modify the parameter's value
1704+
1705+
typedef struct _ze_event_counter_based_get_device_address_params_t
1706+
{
1707+
ze_event_handle_t* phEvent;
1708+
uint64_t** pcompletionValue;
1709+
uint64_t** pdeviceAddress;
1710+
} ze_event_counter_based_get_device_address_params_t;
1711+
1712+
1713+
///////////////////////////////////////////////////////////////////////////////
1714+
/// @brief Callback function-pointer for zeEventCounterBasedGetDeviceAddress
1715+
/// @param[in] params Parameters passed to this instance
1716+
/// @param[in] result Return value
1717+
/// @param[in] pTracerUserData Per-Tracer user data
1718+
/// @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data
1719+
1720+
typedef void (ZE_APICALL *ze_pfnEventCounterBasedGetDeviceAddressCb_t)(
1721+
ze_event_counter_based_get_device_address_params_t* params,
1722+
ze_result_t result,
1723+
void* pTracerUserData,
1724+
void** ppTracerInstanceUserData
1725+
);
1726+
15681727
///////////////////////////////////////////////////////////////////////////////
15691728
/// @brief Callback function parameters for zeEventQueryTimestampsExp
15701729
/// @details Each entry is a pointer to the parameter passed to the function;
@@ -2022,6 +2181,34 @@ typedef void (ZE_APICALL *ze_pfnKernelSchedulingHintExpCb_t)(
20222181
void** ppTracerInstanceUserData
20232182
);
20242183

2184+
///////////////////////////////////////////////////////////////////////////////
2185+
/// @brief Callback function parameters for zeMemGetIpcHandleWithProperties
2186+
/// @details Each entry is a pointer to the parameter passed to the function;
2187+
/// allowing the callback the ability to modify the parameter's value
2188+
2189+
typedef struct _ze_mem_get_ipc_handle_with_properties_params_t
2190+
{
2191+
ze_context_handle_t* phContext;
2192+
const void** pptr;
2193+
void** ppNext;
2194+
ze_ipc_mem_handle_t** ppIpcHandle;
2195+
} ze_mem_get_ipc_handle_with_properties_params_t;
2196+
2197+
2198+
///////////////////////////////////////////////////////////////////////////////
2199+
/// @brief Callback function-pointer for zeMemGetIpcHandleWithProperties
2200+
/// @param[in] params Parameters passed to this instance
2201+
/// @param[in] result Return value
2202+
/// @param[in] pTracerUserData Per-Tracer user data
2203+
/// @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data
2204+
2205+
typedef void (ZE_APICALL *ze_pfnMemGetIpcHandleWithPropertiesCb_t)(
2206+
ze_mem_get_ipc_handle_with_properties_params_t* params,
2207+
ze_result_t result,
2208+
void* pTracerUserData,
2209+
void** ppTracerInstanceUserData
2210+
);
2211+
20252212
///////////////////////////////////////////////////////////////////////////////
20262213
/// @brief Callback function parameters for zeMemFreeExt
20272214
/// @details Each entry is a pointer to the parameter passed to the function;
@@ -2245,6 +2432,33 @@ typedef void (ZE_APICALL *ze_pfnModuleInspectLinkageExtCb_t)(
22452432
void** ppTracerInstanceUserData
22462433
);
22472434

2435+
///////////////////////////////////////////////////////////////////////////////
2436+
/// @brief Callback function parameters for zePhysicalMemGetProperties
2437+
/// @details Each entry is a pointer to the parameter passed to the function;
2438+
/// allowing the callback the ability to modify the parameter's value
2439+
2440+
typedef struct _ze_physical_mem_get_properties_params_t
2441+
{
2442+
ze_context_handle_t* phContext;
2443+
ze_physical_mem_handle_t* phPhysicalMem;
2444+
ze_physical_mem_properties_t** ppMemProperties;
2445+
} ze_physical_mem_get_properties_params_t;
2446+
2447+
2448+
///////////////////////////////////////////////////////////////////////////////
2449+
/// @brief Callback function-pointer for zePhysicalMemGetProperties
2450+
/// @param[in] params Parameters passed to this instance
2451+
/// @param[in] result Return value
2452+
/// @param[in] pTracerUserData Per-Tracer user data
2453+
/// @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data
2454+
2455+
typedef void (ZE_APICALL *ze_pfnPhysicalMemGetPropertiesCb_t)(
2456+
ze_physical_mem_get_properties_params_t* params,
2457+
ze_result_t result,
2458+
void* pTracerUserData,
2459+
void** ppTracerInstanceUserData
2460+
);
2461+
22482462
///////////////////////////////////////////////////////////////////////////////
22492463
/// @brief Callback function parameters for zeFabricEdgeGetExp
22502464
/// @details Each entry is a pointer to the parameter passed to the function;
@@ -2763,6 +2977,14 @@ zelTracerDeviceSynchronizeRegisterCallback(
27632977
);
27642978

27652979

2980+
ZE_APIEXPORT ze_result_t ZE_APICALL
2981+
zelTracerDeviceGetAggregatedCopyOffloadIncrementValueRegisterCallback(
2982+
zel_tracer_handle_t hTracer,
2983+
zel_tracer_reg_t callback_type,
2984+
ze_pfnDeviceGetAggregatedCopyOffloadIncrementValueCb_t pfnGetAggregatedCopyOffloadIncrementValueCb
2985+
);
2986+
2987+
27662988
ZE_APIEXPORT ze_result_t ZE_APICALL
27672989
zelTracerContextCreateRegisterCallback(
27682990
zel_tracer_handle_t hTracer,
@@ -3067,6 +3289,14 @@ zelTracerEventCreateRegisterCallback(
30673289
);
30683290

30693291

3292+
ZE_APIEXPORT ze_result_t ZE_APICALL
3293+
zelTracerEventCounterBasedCreateRegisterCallback(
3294+
zel_tracer_handle_t hTracer,
3295+
zel_tracer_reg_t callback_type,
3296+
ze_pfnEventCounterBasedCreateCb_t pfnCounterBasedCreateCb
3297+
);
3298+
3299+
30703300
ZE_APIEXPORT ze_result_t ZE_APICALL
30713301
zelTracerEventDestroyRegisterCallback(
30723302
zel_tracer_handle_t hTracer,
@@ -3107,6 +3337,38 @@ zelTracerEventPoolCloseIpcHandleRegisterCallback(
31073337
);
31083338

31093339

3340+
ZE_APIEXPORT ze_result_t ZE_APICALL
3341+
zelTracerEventCounterBasedGetIpcHandleRegisterCallback(
3342+
zel_tracer_handle_t hTracer,
3343+
zel_tracer_reg_t callback_type,
3344+
ze_pfnEventCounterBasedGetIpcHandleCb_t pfnCounterBasedGetIpcHandleCb
3345+
);
3346+
3347+
3348+
ZE_APIEXPORT ze_result_t ZE_APICALL
3349+
zelTracerEventCounterBasedOpenIpcHandleRegisterCallback(
3350+
zel_tracer_handle_t hTracer,
3351+
zel_tracer_reg_t callback_type,
3352+
ze_pfnEventCounterBasedOpenIpcHandleCb_t pfnCounterBasedOpenIpcHandleCb
3353+
);
3354+
3355+
3356+
ZE_APIEXPORT ze_result_t ZE_APICALL
3357+
zelTracerEventCounterBasedCloseIpcHandleRegisterCallback(
3358+
zel_tracer_handle_t hTracer,
3359+
zel_tracer_reg_t callback_type,
3360+
ze_pfnEventCounterBasedCloseIpcHandleCb_t pfnCounterBasedCloseIpcHandleCb
3361+
);
3362+
3363+
3364+
ZE_APIEXPORT ze_result_t ZE_APICALL
3365+
zelTracerEventCounterBasedGetDeviceAddressRegisterCallback(
3366+
zel_tracer_handle_t hTracer,
3367+
zel_tracer_reg_t callback_type,
3368+
ze_pfnEventCounterBasedGetDeviceAddressCb_t pfnCounterBasedGetDeviceAddressCb
3369+
);
3370+
3371+
31103372
ZE_APIEXPORT ze_result_t ZE_APICALL
31113373
zelTracerCommandListAppendSignalEventRegisterCallback(
31123374
zel_tracer_handle_t hTracer,
@@ -3691,6 +3953,14 @@ zelTracerVirtualMemQueryPageSizeRegisterCallback(
36913953
);
36923954

36933955

3956+
ZE_APIEXPORT ze_result_t ZE_APICALL
3957+
zelTracerPhysicalMemGetPropertiesRegisterCallback(
3958+
zel_tracer_handle_t hTracer,
3959+
zel_tracer_reg_t callback_type,
3960+
ze_pfnPhysicalMemGetPropertiesCb_t pfnGetPropertiesCb
3961+
);
3962+
3963+
36943964
ZE_APIEXPORT ze_result_t ZE_APICALL
36953965
zelTracerPhysicalMemCreateRegisterCallback(
36963966
zel_tracer_handle_t hTracer,
@@ -3883,6 +4153,14 @@ zelTracerKernelGetAllocationPropertiesExpRegisterCallback(
38834153
);
38844154

38854155

4156+
ZE_APIEXPORT ze_result_t ZE_APICALL
4157+
zelTracerMemGetIpcHandleWithPropertiesRegisterCallback(
4158+
zel_tracer_handle_t hTracer,
4159+
zel_tracer_reg_t callback_type,
4160+
ze_pfnMemGetIpcHandleWithPropertiesCb_t pfnGetIpcHandleWithPropertiesCb
4161+
);
4162+
4163+
38864164
ZE_APIEXPORT ze_result_t ZE_APICALL
38874165
zelTracerDeviceReserveCacheExtRegisterCallback(
38884166
zel_tracer_handle_t hTracer,

0 commit comments

Comments
 (0)