Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Level zero loader changelog
## v1.36.0
* Update to L0 Zero Spec v1.21.26: https://oneapi-src.github.io/level-zero-spec/releases/index.html#level-zero-v1-21-26
* Fix: handle missing APIs on every static loader call (#555)
* Find googletest from system if available (#442)
## v1.35.0
* Update to L0 Zero Spec v1.20.41: https://oneapi-src.github.io/level-zero-spec/releases/index.html#level-zero-v1-20-41
* Feature: Add optional build-time-configured driver search directory for Linux (#541)
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if(MSVC AND (MSVC_VERSION LESS 1900))
endif()

# This project follows semantic versioning (https://semver.org/)
project(level-zero VERSION 1.35.0)
project(level-zero VERSION 1.36.0)
include(GNUInstallDirs)

find_package(Git)
Expand Down
4 changes: 2 additions & 2 deletions PRODUCT_GUID.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
1.35.0
ef31b8c8-692c-4f7e-b5ed-cf7922afb55b
1.36.0
32599add-e348-465a-9c19-5b46987a527b
146 changes: 104 additions & 42 deletions include/ze.py

Large diffs are not rendered by default.

167 changes: 120 additions & 47 deletions include/ze_api.h

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion include/ze_ddi.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* SPDX-License-Identifier: MIT
*
* @file ze_ddi.h
* @version v1.20-r1.20.41
* @version v1.21-r1.21.26
*
*/
#ifndef _ZE_DDI_H
Expand Down
2 changes: 1 addition & 1 deletion include/ze_ddi_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* SPDX-License-Identifier: MIT
*
* @file ze_ddi_common.h
* @version v1.20-r1.20.41
* @version v1.21-r1.21.26
*
*/
#ifndef _ZE_DDI_COMMON_H
Expand Down
2 changes: 1 addition & 1 deletion include/zer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
SPDX-License-Identifier: MIT

@file zer.py
@version v1.20-r1.20.41
@version v1.21-r1.21.26

"""
import platform
Expand Down
2 changes: 1 addition & 1 deletion include/zer_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* SPDX-License-Identifier: MIT
*
* @file zer_api.h
* @version v1.20-r1.20.41
* @version v1.21-r1.21.26
*
*/
#ifndef _ZER_API_H
Expand Down
2 changes: 1 addition & 1 deletion include/zer_ddi.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* SPDX-License-Identifier: MIT
*
* @file zer_ddi.h
* @version v1.20-r1.20.41
* @version v1.21-r1.21.26
*
*/
#ifndef _ZER_DDI_H
Expand Down
252 changes: 245 additions & 7 deletions include/zes.py

Large diffs are not rendered by default.

449 changes: 444 additions & 5 deletions include/zes_api.h

Large diffs are not rendered by default.

95 changes: 94 additions & 1 deletion include/zes_ddi.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* SPDX-License-Identifier: MIT
*
* @file zes_ddi.h
* @version v1.20-r1.20.41
* @version v1.21-r1.21.26
*
*/
#ifndef _ZES_DDI_H
Expand Down Expand Up @@ -569,6 +569,13 @@ typedef ze_result_t (ZE_APICALL *zes_pfnDriverGetPciDeviceProperties_t)(
zes_driver_pci_device_properties_t*
);

///////////////////////////////////////////////////////////////////////////////
/// @brief Function-pointer for zesDriverGetApiVersion
typedef ze_result_t (ZE_APICALL *zes_pfnDriverGetApiVersion_t)(
zes_driver_handle_t,
zes_api_version_t*
);

///////////////////////////////////////////////////////////////////////////////
/// @brief Table of Driver functions pointers
typedef struct _zes_driver_dditable_t
Expand All @@ -583,6 +590,7 @@ typedef struct _zes_driver_dditable_t
zes_pfnDriverEventListenExt_t pfnEventListenExt;
zes_pfnDriverEnumInfoLogsExt_t pfnEnumInfoLogsExt;
zes_pfnDriverGetPciDeviceProperties_t pfnGetPciDeviceProperties;
zes_pfnDriverGetApiVersion_t pfnGetApiVersion;
} zes_driver_dditable_t;

///////////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -2203,6 +2211,89 @@ typedef ze_result_t (ZE_APICALL *zes_pfnGetInfoLogInstanceProcAddrTable_t)(
zes_info_log_instance_dditable_t*
);

///////////////////////////////////////////////////////////////////////////////
/// @brief Function-pointer for zesInfoLogDecoderContextCreateExt
typedef ze_result_t (ZE_APICALL *zes_pfnInfoLogDecoderContextCreateExt_t)(
zes_info_log_handle_t,
zes_info_log_decoder_context_handle_t*
);

///////////////////////////////////////////////////////////////////////////////
/// @brief Function-pointer for zesInfoLogDecoderContextGetFieldInfoExt
typedef ze_result_t (ZE_APICALL *zes_pfnInfoLogDecoderContextGetFieldInfoExt_t)(
zes_info_log_decoder_context_handle_t,
uint32_t*,
zes_info_log_decodable_field_info_ext_t*
);

///////////////////////////////////////////////////////////////////////////////
/// @brief Function-pointer for zesInfoLogDecoderContextDecodeStartExt
typedef ze_result_t (ZE_APICALL *zes_pfnInfoLogDecoderContextDecodeStartExt_t)(
zes_info_log_decoder_context_handle_t,
uint32_t,
const uint8_t*,
uint32_t,
const zes_info_log_metadata_ext_t*
);

///////////////////////////////////////////////////////////////////////////////
/// @brief Function-pointer for zesInfoLogDecoderContextReadFieldExt
typedef ze_result_t (ZE_APICALL *zes_pfnInfoLogDecoderContextReadFieldExt_t)(
zes_info_log_decoder_context_handle_t,
uint32_t,
uint32_t,
void*,
size_t,
size_t*
);

///////////////////////////////////////////////////////////////////////////////
/// @brief Function-pointer for zesInfoLogDecoderContextDecodeStopExt
typedef ze_result_t (ZE_APICALL *zes_pfnInfoLogDecoderContextDecodeStopExt_t)(
zes_info_log_decoder_context_handle_t
);

///////////////////////////////////////////////////////////////////////////////
/// @brief Function-pointer for zesInfoLogDecoderContextDeleteExt
typedef ze_result_t (ZE_APICALL *zes_pfnInfoLogDecoderContextDeleteExt_t)(
zes_info_log_handle_t,
zes_info_log_decoder_context_handle_t
);

///////////////////////////////////////////////////////////////////////////////
/// @brief Table of InfoLogDecoderContext functions pointers
typedef struct _zes_info_log_decoder_context_dditable_t
{
zes_pfnInfoLogDecoderContextCreateExt_t pfnCreateExt;
zes_pfnInfoLogDecoderContextGetFieldInfoExt_t pfnGetFieldInfoExt;
zes_pfnInfoLogDecoderContextDecodeStartExt_t pfnDecodeStartExt;
zes_pfnInfoLogDecoderContextReadFieldExt_t pfnReadFieldExt;
zes_pfnInfoLogDecoderContextDecodeStopExt_t pfnDecodeStopExt;
zes_pfnInfoLogDecoderContextDeleteExt_t pfnDeleteExt;
} zes_info_log_decoder_context_dditable_t;

///////////////////////////////////////////////////////////////////////////////
/// @brief Exported function for filling application's InfoLogDecoderContext table
/// with current process' addresses
///
/// @returns
/// - ::ZE_RESULT_SUCCESS
/// - ::ZE_RESULT_ERROR_UNINITIALIZED
/// - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER
/// - ::ZE_RESULT_ERROR_UNSUPPORTED_VERSION
ZE_DLLEXPORT ze_result_t ZE_APICALL
zesGetInfoLogDecoderContextProcAddrTable(
ze_api_version_t version, ///< [in] API version requested
zes_info_log_decoder_context_dditable_t* pDdiTable ///< [in,out] pointer to table of DDI function pointers
);

///////////////////////////////////////////////////////////////////////////////
/// @brief Function-pointer for zesGetInfoLogDecoderContextProcAddrTable
typedef ze_result_t (ZE_APICALL *zes_pfnGetInfoLogDecoderContextProcAddrTable_t)(
ze_api_version_t,
zes_info_log_decoder_context_dditable_t*
);

///////////////////////////////////////////////////////////////////////////////
/// @brief Container for all DDI tables
typedef struct _zes_dditable_t
Expand Down Expand Up @@ -2233,6 +2324,7 @@ typedef struct _zes_dditable_t
zes_vf_management_exp_dditable_t VFManagementExp;
zes_info_log_dditable_t InfoLog;
zes_info_log_instance_dditable_t InfoLogInstance;
zes_info_log_decoder_context_dditable_t InfoLogDecoderContext;
} zes_dditable_t;
/// @brief Container for all DDI tables with version and tables set by the Driver
typedef struct _zes_dditable_driver_t
Expand Down Expand Up @@ -2265,6 +2357,7 @@ typedef struct _zes_dditable_driver_t
zes_vf_management_exp_dditable_t * VFManagementExp;
zes_info_log_dditable_t * InfoLog;
zes_info_log_instance_dditable_t * InfoLogInstance;
zes_info_log_decoder_context_dditable_t * InfoLogDecoderContext;
} zes_dditable_driver_t;

#if defined(__cplusplus)
Expand Down
9 changes: 7 additions & 2 deletions include/zet.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
SPDX-License-Identifier: MIT

@file zet.py
@version v1.20-r1.20.41
@version v1.21-r1.21.26

"""
import platform
Expand Down Expand Up @@ -72,7 +72,12 @@ class zet_metric_query_handle_t(c_void_p):
pass

###############################################################################
## @brief Handle of tracer object
## @brief [DEPRECATED since 1.14] Handle of tracer object
##
## @deprecated Since 1.14. Only used by the deprecated API Tracing extension. Use L0
## Loader API Tracing
## (https://github.com/oneapi-src/level-zero/tree/master/source/layers/tracing)
## instead.
class zet_tracer_exp_handle_t(c_void_p):
pass

Expand Down
20 changes: 16 additions & 4 deletions include/zet_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* SPDX-License-Identifier: MIT
*
* @file zet_api.h
* @version v1.20-r1.20.41
* @version v1.21-r1.21.26
*
*/
#ifndef _ZET_API_H
Expand Down Expand Up @@ -70,7 +70,12 @@ typedef struct _zet_metric_query_pool_handle_t *zet_metric_query_pool_handle_t;
typedef struct _zet_metric_query_handle_t *zet_metric_query_handle_t;

///////////////////////////////////////////////////////////////////////////////
/// @brief Handle of tracer object
/// @brief [DEPRECATED since 1.14] Handle of tracer object
///
/// @deprecated Since 1.14. Only used by the deprecated API Tracing extension. Use L0
/// Loader API Tracing
/// (https://github.com/oneapi-src/level-zero/tree/master/source/layers/tracing)
/// instead.
typedef struct _zet_tracer_exp_handle_t *zet_tracer_exp_handle_t;

///////////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -1521,7 +1526,7 @@ zetMetricStreamerClose(
/// - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER
/// + `nullptr == pRawDataSize`
/// - ::ZE_RESULT_WARNING_DROPPED_DATA
/// + Metric streamer data may have been dropped. Reduce sampling period.
/// + Metric streamer data may have been dropped. Increase the streamer sampling period or read the streamer data more frequently.
ZE_APIEXPORT ze_result_t ZE_APICALL
zetMetricStreamerReadData(
zet_metric_streamer_handle_t hMetricStreamer, ///< [in] handle of the metric streamer
Expand Down Expand Up @@ -2306,6 +2311,8 @@ typedef enum _ze_calculate_multiple_metrics_exp_version_t
/// + `nullptr == pRawData`
/// + `nullptr == pSetCount`
/// + `nullptr == pTotalMetricValueCount`
/// - ::ZE_RESULT_WARNING_DROPPED_DATA
/// + Metric streamer data may have been dropped. Increase the streamer sampling period or read the streamer data more frequently.
ZE_APIEXPORT ze_result_t ZE_APICALL
zetMetricGroupCalculateMultipleMetricValuesExp(
zet_metric_group_handle_t hMetricGroup, ///< [in] handle of the metric group
Expand Down Expand Up @@ -2540,6 +2547,8 @@ zetMetricGroupGetExportDataExp(
/// + `nullptr == pCalculateDescriptor`
/// + `nullptr == pSetCount`
/// + `nullptr == pTotalMetricValueCount`
/// - ::ZE_RESULT_WARNING_DROPPED_DATA
/// + Metric streamer data may have been dropped. Increase the streamer sampling period or read the streamer data more frequently.
ZE_APIEXPORT ze_result_t ZE_APICALL
zetMetricGroupCalculateMetricExportDataExp(
ze_driver_handle_t hDriver, ///< [in] handle of the driver instance
Expand Down Expand Up @@ -3054,13 +3063,16 @@ zetMetricCreateFromProgrammableExp(
/// - ::ZE_RESULT_ERROR_UNKNOWN
/// - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE
/// + `nullptr == hDevice`
/// - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER
/// + `nullptr == phMetrics`
/// - ::ZE_RESULT_ERROR_INVALID_ARGUMENT
/// + metricGroupCount is lesser than the number of metric group handles that could be created.
ZE_APIEXPORT ze_result_t ZE_APICALL
zetDeviceCreateMetricGroupsFromMetricsExp(
zet_device_handle_t hDevice, ///< [in] handle of the device.
uint32_t metricCount, ///< [in] number of metric handles.
zet_metric_handle_t * phMetrics, ///< [in] metric handles to be added to the metric groups.
zet_metric_handle_t* phMetrics, ///< [in][range(0, metricCount)] array of metric handles to be added to the
///< metric groups.
const char * pMetricGroupNamePrefix, ///< [in] prefix to the name created for the metric groups. Must point to a
///< null-terminated character array no longer than
///< ::ZET_MAX_METRIC_GROUP_NAME_PREFIX_EXP.
Expand Down
4 changes: 2 additions & 2 deletions include/zet_ddi.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* SPDX-License-Identifier: MIT
*
* @file zet_ddi.h
* @version v1.20-r1.20.41
* @version v1.21-r1.21.26
*
*/
#ifndef _ZET_DDI_H
Expand Down Expand Up @@ -274,7 +274,7 @@ typedef ze_result_t (ZE_APICALL *zet_pfnDeviceGetConcurrentMetricGroupsExp_t)(
typedef ze_result_t (ZE_APICALL *zet_pfnDeviceCreateMetricGroupsFromMetricsExp_t)(
zet_device_handle_t,
uint32_t,
zet_metric_handle_t *,
zet_metric_handle_t*,
const char *,
const char *,
uint32_t *,
Expand Down
Loading
Loading