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

@@ -35,6 +35,7 @@ static const char* batchingKernelsCL= \
"#define b3Sqrt native_sqrt\n"
"#define b3Sin native_sin\n"
"#define b3Cos native_cos\n"
"#define B3_STATIC\n"
"#endif\n"
"#endif\n"
"#ifdef __cplusplus\n"

View File

@@ -35,6 +35,7 @@ static const char* batchingKernelsNewCL= \
"#define b3Sqrt native_sqrt\n"
"#define b3Sin native_sin\n"
"#define b3Cos native_cos\n"
"#define B3_STATIC\n"
"#endif\n"
"#endif\n"
"#ifdef __cplusplus\n"

View File

@@ -35,6 +35,7 @@ static const char* integrateKernelCL= \
"#define b3Sqrt native_sqrt\n"
"#define b3Sin native_sin\n"
"#define b3Cos native_cos\n"
"#define B3_STATIC\n"
"#endif\n"
"#endif\n"
"#ifdef __cplusplus\n"

View File

@@ -35,6 +35,7 @@ static const char* solverSetupCL= \
"#define b3Sqrt native_sqrt\n"
"#define b3Sin native_sin\n"
"#define b3Cos native_cos\n"
"#define B3_STATIC\n"
"#endif\n"
"#endif\n"
"#ifdef __cplusplus\n"

View File

@@ -510,7 +510,7 @@ typedef struct
} ConstBufferSSD;
static __constant const int gridTable4x4[] =
__constant const int gridTable4x4[] =
{
0,1,17,16,
1,2,18,19,
@@ -518,7 +518,7 @@ static __constant const int gridTable4x4[] =
16,19,3,34
};
static __constant const int gridTable8x8[] =
__constant const int gridTable8x8[] =
{
0, 2, 3, 16, 17, 18, 19, 1,
66, 64, 80, 67, 82, 81, 65, 83,

View File

@@ -35,6 +35,7 @@ static const char* solverSetup2CL= \
"#define b3Sqrt native_sqrt\n"
"#define b3Sin native_sin\n"
"#define b3Cos native_cos\n"
"#define B3_STATIC\n"
"#endif\n"
"#endif\n"
"#ifdef __cplusplus\n"
@@ -514,14 +515,14 @@ static const char* solverSetup2CL= \
" float m_scale;\n"
" int m_nSplit;\n"
"} ConstBufferSSD;\n"
"static __constant const int gridTable4x4[] = \n"
"__constant const int gridTable4x4[] = \n"
"{\n"
" 0,1,17,16,\n"
" 1,2,18,19,\n"
" 17,18,32,3,\n"
" 16,19,3,34\n"
"};\n"
"static __constant const int gridTable8x8[] = \n"
"__constant const int gridTable8x8[] = \n"
"{\n"
" 0, 2, 3, 16, 17, 18, 19, 1,\n"
" 66, 64, 80, 67, 82, 81, 65, 83,\n"

View File

@@ -35,6 +35,7 @@ static const char* solverUtilsCL= \
"#define b3Sqrt native_sqrt\n"
"#define b3Sin native_sin\n"
"#define b3Cos native_cos\n"
"#define B3_STATIC\n"
"#endif\n"
"#endif\n"
"#ifdef __cplusplus\n"

View File

@@ -25,6 +25,7 @@ static const char* updateAabbsKernelCL= \
"#define b3Sqrt native_sqrt\n"
"#define b3Sin native_sin\n"
"#define b3Cos native_cos\n"
"#define B3_STATIC\n"
"#endif\n"
"#endif\n"
"#ifdef __cplusplus\n"