summaryrefslogtreecommitdiff
path: root/kernels/compiler_argument_structure_indirect.cl
blob: 6fd7873df17e1f26fafbc67211ad03de615a8a33 (plain)
1
2
3
4
5
6
7
8
9
struct hop { int a, x[16]; };

__kernel void
compiler_argument_structure_indirect(__global int *dst, struct hop h)
{
  int id = (int)get_global_id(0);
  dst[id] = h.x[get_local_id(0)];
}