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