aboutsummaryrefslogtreecommitdiffstats
path: root/test/com/mbien/opencl/testkernels.cl
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-01-02 00:15:55 +0100
committerMichael Bien <[email protected]>2010-01-02 00:15:55 +0100
commita5efe050242d1d6a45e03fcac1763ff90877e322 (patch)
treeb8135791915083d1e36b383a182f2973927c8ead /test/com/mbien/opencl/testkernels.cl
parent72203a5d1f8896463ded10d1b21ca116621d1900 (diff)
introduced CLGLContext, refactored dependencies, cleanup in opencl code.
Diffstat (limited to 'test/com/mbien/opencl/testkernels.cl')
-rw-r--r--test/com/mbien/opencl/testkernels.cl4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/com/mbien/opencl/testkernels.cl b/test/com/mbien/opencl/testkernels.cl
index 0790cb32..ec7e8bf6 100644
--- a/test/com/mbien/opencl/testkernels.cl
+++ b/test/com/mbien/opencl/testkernels.cl
@@ -1,6 +1,6 @@
// OpenCL Kernel Function for element by element vector addition
- __kernel void VectorAddGM(__global const int* a, __global const int* b, __global int* c, int iNumElements) {
+ kernel void VectorAddGM(global const int* a, global const int* b, global int* c, int iNumElements) {
// get index into global data array
int iGID = get_global_id(0);
// bound check (equivalent to the limit on a 'for' loop for standard/serial C code
@@ -11,7 +11,7 @@
c[iGID] = a[iGID] + b[iGID];
}
- __kernel void Test(__global const int* a, __global const int* b, __global int* c, int iNumElements) {
+ kernel void Test(global const int* a, global const int* b, global int* c, int iNumElements) {
// get index into global data array
int iGID = get_global_id(0);
// bound check (equivalent to the limit on a 'for' loop for standard/serial C code