clray

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