clray

diff test.cl @ 0:5767277e049f

first test works, let's try to make a raytracer now...
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 12 Jul 2010 05:56:47 +0300
parents
children 0b0e4d18d53f
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/test.cl	Mon Jul 12 05:56:47 2010 +0300
     1.3 @@ -0,0 +1,6 @@
     1.4 +__kernel void test(__global const int *src, __global int *dst)
     1.5 +{
     1.6 +	int idx = get_global_id(0);
     1.7 +
     1.8 +	dst[idx] = src[idx] * 2.0;
     1.9 +}