share more code between OpenCL kernels and C++ by moving kernel data structures/code to the 'shared' folders
This commit is contained in:
@@ -8,9 +8,10 @@ struct MyTest
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define b3AtomicInc(a) ((*a)++)
|
||||
#define __global
|
||||
#else
|
||||
#define b3AtomicInc atomic_inc
|
||||
|
||||
#define b3Fabs fabs
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user