summaryrefslogtreecommitdiff
path: root/opencl/compute_increment_kernel.cl
blob: 0274b08838fc8fa9ab5ec99f2e8c18198217b758 (plain)
1
2
3
4
5
6
__kernel void square(__global float* output, const unsigned int count) {
  int i = get_global_id(0);
  for (int j = 0; j < count ; j++) {
    output[i] = output[i] + 1;
   }
}