[Beignet] [PATCH 4/4] [opencl-2.0] clEnqueueTask deprecated in opencl-2.0.

xionghu.luo at intel.com xionghu.luo at intel.com
Wed Apr 29 01:04:02 PDT 2015


From: Luo Xionghu <xionghu.luo at intel.com>

Signed-off-by: Luo Xionghu <xionghu.luo at intel.com>
---
 src/cl_khr_icd.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/cl_khr_icd.c b/src/cl_khr_icd.c
index f9b91ae..13514c4 100644
--- a/src/cl_khr_icd.c
+++ b/src/cl_khr_icd.c
@@ -115,7 +115,11 @@ struct _cl_icd_dispatch const cl_khr_icd_dispatch = {
   clEnqueueMapImage,
   clEnqueueUnmapMemObject,
   clEnqueueNDRangeKernel,
+#ifdef CL_VERSION_2_0
+  (void *) NULL, /* clEnqueueTask deprecated */
+#else
   clEnqueueTask,
+#endif
   clEnqueueNativeKernel,
   clEnqueueMarker,
   clEnqueueWaitForEvents,
-- 
1.9.1



More information about the Beignet mailing list