clray

diff test.cl @ 1:0b0e4d18d53f

added non-buffer args
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 12 Jul 2010 07:00:19 +0300
parents 5767277e049f
children
line diff
     1.1 --- a/test.cl	Mon Jul 12 05:56:47 2010 +0300
     1.2 +++ b/test.cl	Mon Jul 12 07:00:19 2010 +0300
     1.3 @@ -1,6 +1,6 @@
     1.4 -__kernel void test(__global const int *src, __global int *dst)
     1.5 +__kernel void test(__global int *dst, __global const int *src, __global const int foo)
     1.6  {
     1.7  	int idx = get_global_id(0);
     1.8  
     1.9 -	dst[idx] = src[idx] * 2.0;
    1.10 +	dst[idx] = src[idx] * foo;
    1.11  }