summaryrefslogtreecommitdiff
path: root/kernels/compiler_local_memory_barrier.cl
blob: 39a94b8098e660d18bfbcadf4704e3af54a17788 (plain)
1
2
3
4
5
6
__kernel void compiler_local_memory_barrier(__global int *dst, __local int *src) {
  src[get_local_id(0)] = get_local_id(0);
  barrier(CLK_LOCAL_MEM_FENCE);
  dst[get_global_id(0)] = src[15 - get_local_id(0)];
}