From f67dd44cb12da0f5c7150b51158cb03e9487b845 Mon Sep 17 00:00:00 2001
From: Yichao Yu <yyc1992@gmail.com>
Date: Sun, 28 Sep 2014 19:50:56 -0400
Subject: [PATCH] try fix compilation for opencl < 1.2

---
 src/c_wrapper/wrap_cl.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/c_wrapper/wrap_cl.h b/src/c_wrapper/wrap_cl.h
index a263f640..3bbcdec5 100644
--- a/src/c_wrapper/wrap_cl.h
+++ b/src/c_wrapper/wrap_cl.h
@@ -63,6 +63,14 @@
 typedef cl_bitfield cl_mem_migration_flags_ext;
 #endif
 
+#if PYOPENCL_CL_VERSION < 0x1020
+typedef intptr_t cl_device_partition_property;
+#endif
+
+#ifndef cl_ext_device_fission
+typedef cl_ulong cl_device_partition_property_ext;
+#endif
+
 namespace pyopencl {
 struct clbase;
 }
-- 
GitLab