clray

annotate 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
rev   line source
nuclear@0 1 __kernel void test(__global const int *src, __global int *dst)
nuclear@0 2 {
nuclear@0 3 int idx = get_global_id(0);
nuclear@0 4
nuclear@0 5 dst[idx] = src[idx] * 2.0;
nuclear@0 6 }