summaryrefslogtreecommitdiff
path: root/kernels/compiler_mem_fence.cl
blob: c17985e277889f5e0b5bbb0851d8f4ee6be384f2 (plain)
1
2
3
4
5
6
7
8
9
10
kernel void compiler_mem_fence() {
  barrier(CLK_LOCAL_MEM_FENCE);
  barrier(CLK_GLOBAL_MEM_FENCE);
  mem_fence(CLK_LOCAL_MEM_FENCE);
  mem_fence(CLK_GLOBAL_MEM_FENCE);
  read_mem_fence(CLK_LOCAL_MEM_FENCE);
  read_mem_fence(CLK_GLOBAL_MEM_FENCE);
  write_mem_fence(CLK_LOCAL_MEM_FENCE);
  write_mem_fence(CLK_GLOBAL_MEM_FENCE);
}