[Beignet] [PATCH 01/14] Libocl: Add intel_subgroups_short extension
Xiuli Pan
xiuli.pan at intel.com
Wed Oct 12 08:56:31 UTC 2016
From: Pan Xiuli <xiuli.pan at intel.com>
We support intel_subgroups_short extension.
Signed-off-by: Pan Xiuli <xiuli.pan at intel.com>
---
backend/src/libocl/include/ocl.h | 1 +
src/cl_extensions.h | 5 +++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/backend/src/libocl/include/ocl.h b/backend/src/libocl/include/ocl.h
index 5e3a788..6230b93 100644
--- a/backend/src/libocl/include/ocl.h
+++ b/backend/src/libocl/include/ocl.h
@@ -114,6 +114,7 @@
#define cl_khr_fp16
#define cl_khr_3d_image_writes
#define cl_intel_subgroups
+#define cl_intel_subgroups_short
#pragma OPENCL EXTENSION cl_khr_fp64 : disable
#pragma OPENCL EXTENSION cl_khr_fp16 : disable
diff --git a/src/cl_extensions.h b/src/cl_extensions.h
index 1139775..c32e085 100644
--- a/src/cl_extensions.h
+++ b/src/cl_extensions.h
@@ -28,7 +28,8 @@
#define DECL_INTEL_EXTENSIONS \
DECL_EXT(intel_accelerator) \
DECL_EXT(intel_motion_estimation) \
- DECL_EXT(intel_subgroups)
+ DECL_EXT(intel_subgroups) \
+ DECL_EXT(intel_subgroups_short)
#define DECL_GL_EXTENSIONS \
DECL_EXT(khr_gl_sharing)\
@@ -63,7 +64,7 @@ cl_khr_extension_id_max
#define OPT1_EXT_START_ID EXT_ID(khr_int64_base_atomics)
#define OPT1_EXT_END_ID EXT_ID(khr_icd)
#define INTEL_EXT_START_ID EXT_ID(intel_accelerator)
-#define INTEL_EXT_END_ID EXT_ID(intel_subgroups)
+#define INTEL_EXT_END_ID EXT_ID(intel_subgroups_short)
#define GL_EXT_START_ID EXT_ID(khr_gl_sharing)
#define GL_EXT_END_ID EXT_ID(khr_gl_msaa_sharing)
--
2.7.4
More information about the Beignet
mailing list