[Beignet] [PATCH 1/2] CL: back port ICD support to 1.1 branch.

Zhigang Gong zhigang.gong at intel.com
Wed Jan 8 03:31:08 PST 2014


Signed-off-by: Zhigang Gong <zhigang.gong at intel.com>
---
 src/cl_khr_icd.c |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/cl_khr_icd.c b/src/cl_khr_icd.c
index d601134..cb5f5cd 100644
--- a/src/cl_khr_icd.c
+++ b/src/cl_khr_icd.c
@@ -14,7 +14,14 @@
  * You should have received a copy of the GNU Lesser General Public
  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
-
+#include <CL/cl.h>
+#ifndef CL_VERSION_1_2
+#include <cl_mem.h>
+typedef cl_uint             cl_kernel_arg_info;
+typedef cl_bitfield         cl_mem_migration_flags;
+#define cl_device_partition_property cl_device_partition_property_ext
+#define CL_API_SUFFIX__VERSION_1_2
+#endif
 #include <ocl_icd.h>
 
 #include "cl_platform_id.h"
-- 
1.7.9.5



More information about the Beignet mailing list