The 'static' storage-class specifier is not supported in OpenCL.

This is documented in Section 6.8 (g) in OpenCL 1.1 specification.
This commit is contained in:
hujiajie
2016-03-03 15:59:47 +08:00
parent 51970941b4
commit ad6fb3afc1
15 changed files with 42 additions and 20 deletions

View File

@@ -20,6 +20,8 @@ inline int b3AtomicAdd (volatile int *p, int val)
}
#define __global
#define B3_STATIC static
#else
//keep B3_LARGE_FLOAT*B3_LARGE_FLOAT < FLT_MAX
#define B3_LARGE_FLOAT 1e18f
@@ -32,6 +34,8 @@ inline int b3AtomicAdd (volatile int *p, int val)
#define b3Sqrt native_sqrt
#define b3Sin native_sin
#define b3Cos native_cos
#define B3_STATIC
#endif
#endif