summaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorPan Xiuli <xiuli.pan@intel.com>2017-06-15 16:44:49 +0800
committerYang Rong <rong.r.yang@intel.com>2017-06-16 16:34:32 +0800
commit521ac708db7f6b679aa32c7fced3ee953ae61867 (patch)
treefecf695edafad90fdd762dac75d79c05e8bfa2e3 /backend
parent82bc42144542322e4db59c64b2382591e7f7e943 (diff)
downloadbeignet-521ac708db7f6b679aa32c7fced3ee953ae61867.tar.gz
Runtime: Add new API enums for cl_intel_required_subgroup_size extension
Add CL_DEVICE_SUB_GROUP_SIZES_INTEL for clGetDeviceInfo, add CL_KERNEL_SPILL_MEM_SIZE_INTEL for clGetKernelWorkGroupInfo and add CL_KERNEL_COMPILE_SUB_GROUP_SIZE_INTEL for clGetKernelSubGroupInfo. We only have this extension for LLVM 40+ for frontend support. V2: Add opencl-c define Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'backend')
-rw-r--r--backend/src/libocl/include/ocl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/src/libocl/include/ocl.h b/backend/src/libocl/include/ocl.h
index dded5748..5819f8cb 100644
--- a/backend/src/libocl/include/ocl.h
+++ b/backend/src/libocl/include/ocl.h
@@ -126,6 +126,10 @@
#define cl_intel_planar_yuv
#define cl_intel_media_block_io
+#if __clang_major__*10 + __clang_minor__ > 40
+#define cl_intel_required_subgroup_size
+#endif
+
#pragma OPENCL EXTENSION cl_khr_fp64 : disable
#pragma OPENCL EXTENSION cl_khr_fp16 : disable
#endif