mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
feature: add graph properties api structures and flags
Related-To: NEO-15375 Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
043d069fbe
commit
0799f8cd54
@@ -18,7 +18,7 @@
|
||||
#if defined(__cplusplus)
|
||||
#define EXTENDED_ENUM(ENUM_T, VALUE) static_cast<ENUM_T>(VALUE) // NOLINT(clang-analyzer-optin.core.EnumCastOutOfRange)
|
||||
#else
|
||||
#define EXTENDED_ENUM(ENUM_T, VALUE) VALUE
|
||||
#define EXTENDED_ENUM(ENUM_T, VALUE) ((ENUM_T)VALUE)
|
||||
#endif
|
||||
|
||||
#ifndef ZE_RECORD_REPLAY_GRAPH_EXP_NAME
|
||||
@@ -31,6 +31,20 @@ typedef enum _ze_record_replay_graph_exp_version_t {
|
||||
ZE_RECORD_REPLAY_GRAPH_EXP_VERSION_FORCE_UINT32 = 0x7fffffff, ///< Value marking end of ZE_RECORD_REPLAY_GRAPH_EXP_VERSION_* ENUMs
|
||||
} ze_record_replay_graph_exp_version_t;
|
||||
|
||||
typedef uint32_t ze_record_replay_graph_exp_flags_t;
|
||||
typedef enum _ze_record_replay_graph_exp_flag_t {
|
||||
ZE_RECORD_REPLAY_GRAPH_EXP_FLAG_IMMUTABLE_GRAPH = ZE_BIT(0), ///< immutable
|
||||
ZE_RECORD_REPLAY_GRAPH_EXP_FLAG_MUTABLE_GRAPH = ZE_BIT(1), ///< mutable
|
||||
ZE_RECORD_REPLAY_GRAPH_EXP_FLAG_FORCE_UINT32 = 0x7fffffff, ///< Value marking end of ZE_RECORD_REPLAY_EXP_FLAG_* ENUMs
|
||||
} ze_record_replay_graph_exp_flag_t;
|
||||
|
||||
typedef struct _ze_record_replay_graph_exp_properties_t {
|
||||
ze_structure_type_ext_t stype; ///< [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_record_replay_graph_exp_flags_t graphFlags; ///< [out] record replay flags
|
||||
} ze_record_replay_graph_exp_properties_t;
|
||||
|
||||
typedef struct _ze_graph_handle_t *ze_graph_handle_t;
|
||||
typedef struct _ze_executable_graph_handle_t *ze_executable_graph_handle_t;
|
||||
#define ZE_RESULT_QUERY_TRUE EXTENDED_ENUM(ze_result_t, 0x7fff0000)
|
||||
|
||||
@@ -43,6 +43,9 @@ using zes_structure_type_ext_t = uint32_t;
|
||||
#define ZEX_STRUCTURE_COUNTER_BASED_EVENT_EXTERNAL_SYNC_ALLOC_PROPERTIES static_cast<ze_structure_type_ext_t>(0x0003001D)
|
||||
#define ZEX_STRUCTURE_COUNTER_BASED_EVENT_EXTERNAL_STORAGE_ALLOC_PROPERTIES static_cast<ze_structure_type_ext_t>(0x00030027)
|
||||
#define ZE_STRUCTURE_TYPE_QUEUE_PRIORITY_DESC static_cast<ze_structure_type_ext_t>(0x00030028)
|
||||
#ifndef ZE_RECORD_REPLAY_GRAPH_EXP_NAME
|
||||
#define ZE_STRUCTURE_TYPE_RECORD_REPLAY_GRAPH_EXP_PROPERTIES static_cast<ze_structure_type_ext_t>(0x00030029)
|
||||
#endif // ZE_RECORD_REPLAY_GRAPH_EXP_NAME
|
||||
|
||||
// Metric structure types
|
||||
#define ZET_STRUCTURE_TYPE_INTEL_METRIC_SCOPE_PROPERTIES_EXP static_cast<zet_structure_type_ext_t>(0x00010006)
|
||||
|
||||
Reference in New Issue
Block a user