summaryrefslogtreecommitdiff
path: root/r600/lib/synchronization/barrier.cl
blob: ac0b4b3b2bec222ec0a41c6a18cb988c029be5af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

#include <clc/clc.h>

void barrier_local(void);
void barrier_global(void);

void barrier(cl_mem_fence_flags flags) {
  if (flags & CLK_LOCAL_MEM_FENCE) {
    barrier_local();
  }

  if (flags & CLK_GLOBAL_MEM_FENCE) {
    barrier_global();
  }
}