summaryrefslogtreecommitdiff
path: root/kernels/runtime_use_host_ptr_buffer.cl
blob: dbaadf87863e42e8ad6014ad5502f81ee65b9736 (plain)
1
2
3
4
5
6
__kernel void
runtime_use_host_ptr_buffer(__global int* buf)
{
  int id = (int)get_global_id(0);
  buf[id] = buf[id] / 2;
}