summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Ashbaugh <ben.ashbaugh@intel.com>2021-09-16 07:21:56 -0700
committerGitHub <noreply@github.com>2021-09-16 15:21:56 +0100
commit835558e45c41df1345ee514e94a839c31923c1b2 (patch)
tree776cf24d01faa953111392898fe0d136f98d42d8
parent06fecd8fed3f7b734c4e0318ff5a2595a612889c (diff)
downloadOpenCL-Headers-835558e45c41df1345ee514e94a839c31923c1b2.tar.gz
OpenCL-Headers-835558e45c41df1345ee514e94a839c31923c1b2.tar.bz2
OpenCL-Headers-835558e45c41df1345ee514e94a839c31923c1b2.zip
update extension headers for cl_intel_device_attribute_query (#172)
-rw-r--r--CL/cl_ext.h21
1 files changed, 21 insertions, 0 deletions
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 *
************************************************/