|
5 | 5 | * SPDX-License-Identifier: MIT |
6 | 6 | * |
7 | 7 | * @file ze_api.h |
8 | | - * @version v1.11-r1.11.5 |
| 8 | + * @version v1.11-r1.11.8 |
9 | 9 | * |
10 | 10 | */ |
11 | 11 | #ifndef _ZE_API_H |
@@ -968,8 +968,9 @@ typedef enum _ze_init_flag_t |
968 | 968 | /// @brief Initialize the 'oneAPI' driver(s) |
969 | 969 | /// |
970 | 970 | /// @details |
971 | | -/// - The application must call this function before calling any other |
972 | | -/// function. |
| 971 | +/// - @deprecated since 1.10. Please use zeInitDrivers() |
| 972 | +/// - The application must call this function or zeInitDrivers before |
| 973 | +/// calling any other function. |
973 | 974 | /// - If this function is not called then all other functions will return |
974 | 975 | /// ::ZE_RESULT_ERROR_UNINITIALIZED. |
975 | 976 | /// - Only one instance of each driver will be initialized per process. |
@@ -999,6 +1000,10 @@ zeInit( |
999 | 1000 | /// @brief Retrieves driver instances |
1000 | 1001 | /// |
1001 | 1002 | /// @details |
| 1003 | +/// - @deprecated since 1.10. Please use zeInitDrivers() |
| 1004 | +/// - Usage of zeInitDrivers and zeDriverGet is mutually exclusive and |
| 1005 | +/// should not be used together. Usage of them together will result in |
| 1006 | +/// undefined behavior. |
1002 | 1007 | /// - A driver represents a collection of physical devices. |
1003 | 1008 | /// - Multiple calls to this function will return identical driver handles, |
1004 | 1009 | /// in the same order. |
@@ -1075,20 +1080,20 @@ typedef struct _ze_init_driver_type_desc_t |
1075 | 1080 | /// |
1076 | 1081 | /// @details |
1077 | 1082 | /// - The application must call this function or zeInit before calling any |
1078 | | -/// other function. |
1079 | | -/// - The application can call InitDrivers or zeInit to init the drivers on |
1080 | | -/// the system. |
1081 | | -/// - Calls to zeInit or InitDrivers will not alter the drivers retrieved |
1082 | | -/// thru either api. |
1083 | | -/// - Drivers init thru zeInit or InitDrivers will not be reInitialized once |
1084 | | -/// init in an application. The Loader will determine if the already init |
1085 | | -/// driver needs to be delivered to the user thru the init type flags. |
| 1083 | +/// other function. (zeInit is [Deprecated] and is replaced by |
| 1084 | +/// zeInitDrivers) |
| 1085 | +/// - Calls to zeInit[Deprecated] or InitDrivers will not alter the drivers |
| 1086 | +/// retrieved thru either api. |
| 1087 | +/// - Drivers init thru zeInit[Deprecated] or InitDrivers will not be |
| 1088 | +/// reInitialized once init in an application. The Loader will determine |
| 1089 | +/// if the already init driver needs to be delivered to the user thru the |
| 1090 | +/// init type flags. |
1086 | 1091 | /// - Already init Drivers will not be uninitialized if the call to |
1087 | 1092 | /// InitDrivers does not include that driver's type. Those init drivers |
1088 | 1093 | /// which don't match the init flags will not have their driver handles |
1089 | 1094 | /// returned to the user in that InitDrivers call. |
1090 | | -/// - If this function or zeInit is not called, then all other functions |
1091 | | -/// will return ::ZE_RESULT_ERROR_UNINITIALIZED. |
| 1095 | +/// - If this function or zeInit[Deprecated] is not called, then all other |
| 1096 | +/// functions will return ::ZE_RESULT_ERROR_UNINITIALIZED. |
1092 | 1097 | /// - Only one instance of each driver will be initialized per process. |
1093 | 1098 | /// - A driver represents a collection of physical devices. |
1094 | 1099 | /// - Multiple calls to this function will return identical driver handles, |
@@ -7659,6 +7664,34 @@ typedef struct _ze_relaxed_allocation_limits_exp_desc_t |
7659 | 7664 | #define ZE_GET_KERNEL_BINARY_EXP_NAME "ZE_extension_kernel_binary_exp" |
7660 | 7665 | #endif // ZE_GET_KERNEL_BINARY_EXP_NAME |
7661 | 7666 |
|
| 7667 | +/////////////////////////////////////////////////////////////////////////////// |
| 7668 | +/// @brief Retrieves kernel binary program data (ISA GEN format). |
| 7669 | +/// |
| 7670 | +/// @details |
| 7671 | +/// - A valid kernel handle must be created with ::zeKernelCreate. |
| 7672 | +/// - Returns Intel Graphics Assembly (GEN ISA) format binary program data |
| 7673 | +/// for kernel handle. |
| 7674 | +/// - The application may call this function from simultaneous threads. |
| 7675 | +/// - The implementation of this function must be thread-safe. |
| 7676 | +/// |
| 7677 | +/// @returns |
| 7678 | +/// - ::ZE_RESULT_SUCCESS |
| 7679 | +/// - ::ZE_RESULT_ERROR_UNINITIALIZED |
| 7680 | +/// - ::ZE_RESULT_ERROR_DEVICE_LOST |
| 7681 | +/// - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY |
| 7682 | +/// - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY |
| 7683 | +/// - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE |
| 7684 | +/// + `nullptr == hKernel` |
| 7685 | +/// - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER |
| 7686 | +/// + `nullptr == pSize` |
| 7687 | +/// + `nullptr == pKernelBinary` |
| 7688 | +ZE_APIEXPORT ze_result_t ZE_APICALL |
| 7689 | +zeKernelGetBinaryExp( |
| 7690 | + ze_kernel_handle_t hKernel, ///< [in] Kernel handle. |
| 7691 | + size_t* pSize, ///< [in,out] pointer to variable with size of GEN ISA binary. |
| 7692 | + uint8_t* pKernelBinary ///< [in,out] pointer to storage area for GEN ISA binary function. |
| 7693 | + ); |
| 7694 | + |
7662 | 7695 | #if !defined(__GNUC__) |
7663 | 7696 | #pragma endregion |
7664 | 7697 | #endif |
|
0 commit comments