support OpenCL 1.1 other built-in data types
authorHomer Hsing <homer.xing@intel.com>
Thu, 6 Dec 2012 03:18:51 +0000 (11:18 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Fri, 29 Mar 2013 10:41:34 +0000 (18:41 +0800)
backend/src/ocl_stdlib.h
backend/src/ocl_stdlib_str.cpp

index 376aa09..6edf78a 100644 (file)
@@ -55,6 +55,15 @@ DEF(ulong);
 DEF(float);
 #undef DEF
 /////////////////////////////////////////////////////////////////////////////
+// OpenCL other built-in data types
+/////////////////////////////////////////////////////////////////////////////
+struct _image2d_t;
+typedef struct _image2d_t* image2d_t;
+struct _image3d_t;
+typedef struct _image3d_t* image3d_t;
+typedef uint sampler_t;
+typedef size_t event_t;
+/////////////////////////////////////////////////////////////////////////////
 // OpenCL preprocessor directives & macros
 /////////////////////////////////////////////////////////////////////////////
 #define __OPENCL_VERSION__ 110
index 7a2df7f..a43e00f 100644 (file)
@@ -59,6 +59,15 @@ std::string ocl_stdlib_str =
 "#undef DEF\n"
 "\n"
 "/////////////////////////////////////////////////////////////////////////////\n"
+"// OpenCL other built-in data types\n"
+"/////////////////////////////////////////////////////////////////////////////\n"
+"struct _image2d_t;\n"
+"typedef struct _image2d_t* image2d_t;\n"
+"struct _image3d_t;\n"
+"typedef struct _image3d_t* image3d_t;\n"
+"typedef uint sampler_t;\n"
+"typedef size_t event_t;\n"
+"/////////////////////////////////////////////////////////////////////////////\n"
 "// OpenCL preprocessor directives & macros\n"
 "/////////////////////////////////////////////////////////////////////////////\n"
 "#define __OPENCL_VERSION__ 110\n"