From: Homer Hsing Date: Thu, 6 Dec 2012 03:18:51 +0000 (+0800) Subject: support OpenCL 1.1 other built-in data types X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=323913370cb627a324af57c068a01586cd39165c;p=contrib%2Fbeignet.git support OpenCL 1.1 other built-in data types --- diff --git a/backend/src/ocl_stdlib.h b/backend/src/ocl_stdlib.h index 376aa09..6edf78a 100644 --- a/backend/src/ocl_stdlib.h +++ b/backend/src/ocl_stdlib.h @@ -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 diff --git a/backend/src/ocl_stdlib_str.cpp b/backend/src/ocl_stdlib_str.cpp index 7a2df7f..a43e00f 100644 --- a/backend/src/ocl_stdlib_str.cpp +++ b/backend/src/ocl_stdlib_str.cpp @@ -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"