__kernel void adder(__global const uchar* data,__global uchar* result) { int idx = get_global_id(0)*3; result[idx] = result[idx+1] = result[idx+2]=(data[idx]*11+ data[idx+1]*59 + data[idx+2]*30)/100; }
Standard input is empty
prog.cpp:1:1: error: '__kernel' does not name a type __kernel void adder(__global const uchar* data,__global uchar* result) ^
Standard output is empty