1#include <clc/clc.h> 2 3_CLC_DEF _CLC_OVERLOAD void barrier(cl_mem_fence_flags flags) { 4 mem_fence(flags); 5 __builtin_amdgcn_s_barrier(); 6} 7