summaryrefslogtreecommitdiff
path: root/kernels/compiler_insn_selection_min.cl
blob: 6800eaf75024db8b22a83bc9a7624b9b1f709772 (plain)
1
2
3
4
5
6
7
__kernel void
compiler_insn_selection_min(__global float* src, __global float* dst)
{
  int id = (int)get_global_id(0);
  dst[id] = min(src[id], src[0]);
}