summaryrefslogtreecommitdiff
path: root/opencl/compute_square_kernel.cl
blob: f6260fb934dc6ba0d5935e8052c3ffa601b0b47e (plain)
1
2
3
4
5
__kernel void square(__global float* input, __global float* output, const unsigned int count) {
  int i = get_global_id(0);
  if(i < count)
    output[i] = input[i] * input[i];
}