[Beignet] [PATCH] GBE: clang's FE doesn't support static, we just ignore it.
Zhigang Gong
zhigang.gong at intel.com
Mon Jan 6 20:37:10 PST 2014
Although opencl spec does support static global variable or
non-kernel function, clang doesn't support them currently.
We simply ignore it currently.
Signed-off-by: Zhigang Gong <zhigang.gong at intel.com>
---
backend/src/ocl_stdlib.tmpl.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/backend/src/ocl_stdlib.tmpl.h b/backend/src/ocl_stdlib.tmpl.h
index 03044c4..07a4fd9 100755
--- a/backend/src/ocl_stdlib.tmpl.h
+++ b/backend/src/ocl_stdlib.tmpl.h
@@ -25,6 +25,8 @@
#define PURE __attribute__((pure))
#define CONST __attribute__((const))
#define INLINE_OVERLOADABLE inline __attribute__((overloadable,always_inline))
+// FIXME, clang's opencl FE doesn't support static.
+#define static
/////////////////////////////////////////////////////////////////////////////
// OpenCL built-in scalar data types
--
1.7.9.5
More information about the Beignet
mailing list