69 lines
3.0 KiB
C
69 lines
3.0 KiB
C
![]() |
/*
|
||
|
* Copyright (C) 2020-2023 Intel Corporation
|
||
|
*
|
||
|
* SPDX-License-Identifier: MIT
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
#ifndef _ZE_INTEL_GPU_H
|
||
|
#define _ZE_INTEL_GPU_H
|
||
|
|
||
|
#include <level_zero/ze_api.h>
|
||
|
|
||
|
#if defined(__cplusplus)
|
||
|
#pragma once
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
#include <stdint.h>
|
||
|
|
||
|
#define ZE_INTEL_GPU_VERSION_MAJOR 0
|
||
|
#define ZE_INTEL_GPU_VERSION_MINOR 1
|
||
|
|
||
|
///////////////////////////////////////////////////////////////////////////////
|
||
|
#ifndef ZE_INTEL_DEVICE_MODULE_DP_PROPERTIES_EXP_NAME
|
||
|
/// @brief Module DP properties driver extension name
|
||
|
#define ZE_INTEL_DEVICE_MODULE_DP_PROPERTIES_EXP_NAME "ZE_intel_experimental_device_module_dp_properties"
|
||
|
#endif // ZE_INTEL_DEVICE_MODULE_DP_PROPERTIES_EXP_NAME
|
||
|
|
||
|
///////////////////////////////////////////////////////////////////////////////
|
||
|
/// @brief Module DP properties driver extension Version(s)
|
||
|
typedef enum _ze_intel_device_module_dp_properties_exp_version_t {
|
||
|
ZE_INTEL_DEVICE_MODULE_DP_PROPERTIES_EXP_VERSION_1_0 = ZE_MAKE_VERSION(1, 0), ///< version 1.0
|
||
|
ZE_INTEL_DEVICE_MODULE_DP_PROPERTIES_EXP_VERSION_CURRENT = ZE_MAKE_VERSION(1, 0), ///< latest known version
|
||
|
ZE_INTEL_DEVICE_MODULE_DP_PROPERTIES_EXP_VERSION_FORCE_UINT32 = 0x7fffffff
|
||
|
|
||
|
} ze_intel_device_module_dp_properties_exp_version_t;
|
||
|
|
||
|
///////////////////////////////////////////////////////////////////////////////
|
||
|
/// @brief Supported Dot Product flags
|
||
|
typedef uint32_t ze_intel_device_module_dp_exp_flags_t;
|
||
|
typedef enum _ze_intel_device_module_dp_exp_flag_t {
|
||
|
ZE_INTEL_DEVICE_MODULE_EXP_FLAG_DP4A = ZE_BIT(0), ///< Supports DP4A operation
|
||
|
ZE_INTEL_DEVICE_MODULE_EXP_FLAG_DPAS = ZE_BIT(1), ///< Supports DPAS operation
|
||
|
ZE_INTEL_DEVICE_MODULE_EXP_FLAG_FORCE_UINT32 = 0x7fffffff
|
||
|
|
||
|
} ze_intel_device_module_dp_exp_flag_t;
|
||
|
|
||
|
///////////////////////////////////////////////////////////////////////////////
|
||
|
#define ZE_STRUCTURE_INTEL_DEVICE_MODULE_DP_EXP_PROPERTIES (ze_structure_type_t)0x00030013
|
||
|
///////////////////////////////////////////////////////////////////////////////
|
||
|
/// @brief Device Module dot product properties queried using
|
||
|
/// ::zeDeviceGetModuleProperties
|
||
|
///
|
||
|
/// @details
|
||
|
/// - This structure may be passed to ::zeDeviceGetModuleProperties, via
|
||
|
/// `pNext` member of ::ze_device_module_properties_t.
|
||
|
/// @brief Device module dot product properties
|
||
|
typedef struct _ze_intel_device_module_dp_exp_properties_t {
|
||
|
ze_structure_type_t stype = ZE_STRUCTURE_INTEL_DEVICE_MODULE_DP_EXP_PROPERTIES; ///< [in] type of this structure
|
||
|
void *pNext; ///< [in,out][optional] must be null or a pointer to an extension-specific
|
||
|
///< structure (i.e. contains sType and pNext).
|
||
|
ze_intel_device_module_dp_exp_flags_t flags; ///< [out] 0 (none) or a valid combination of ::ze_intel_device_module_dp_flag_t
|
||
|
} ze_intel_device_module_dp_exp_properties_t;
|
||
|
|
||
|
#if defined(__cplusplus)
|
||
|
} // extern "C"
|
||
|
#endif
|
||
|
|
||
|
#endif // _ZE_INTEL_GPU_H
|