From 835558e45c41df1345ee514e94a839c31923c1b2 Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Thu, 16 Sep 2021 07:21:56 -0700 Subject: update extension headers for cl_intel_device_attribute_query (#172) --- CL/cl_ext.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/CL/cl_ext.h b/CL/cl_ext.h index 8e100fb..277c1dc 100644 --- a/CL/cl_ext.h +++ b/CL/cl_ext.h @@ -1016,6 +1016,27 @@ typedef cl_uint cl_command_termination_reason_arm; #define CL_QUEUE_THREAD_LOCAL_EXEC_ENABLE_INTEL (((cl_bitfield)1) << 31) +/*************************************************************** +* cl_intel_device_attribute_query +***************************************************************/ + +#define cl_intel_device_attribute_query 1 + +typedef cl_bitfield cl_device_feature_capabilities_intel; + +/* cl_device_feature_capabilities_intel */ +#define CL_DEVICE_FEATURE_FLAG_DP4A_INTEL (1 << 0) +#define CL_DEVICE_FEATURE_FLAG_DPAS_INTEL (1 << 1) + +/* cl_device_info */ +#define CL_DEVICE_IP_VERSION_INTEL 0x4250 +#define CL_DEVICE_ID_INTEL 0x4251 +#define CL_DEVICE_NUM_SLICES_INTEL 0x4252 +#define CL_DEVICE_NUM_SUB_SLICES_PER_SLICE_INTEL 0x4253 +#define CL_DEVICE_NUM_EUS_PER_SUB_SLICE_INTEL 0x4254 +#define CL_DEVICE_NUM_THREADS_PER_EU_INTEL 0x4255 +#define CL_DEVICE_FEATURE_CAPABILITIES_INTEL 0x4256 + /*********************************************** * cl_intel_device_partition_by_names extension * ************************************************/ -- cgit v1.2.3