llvm-project/libclc/ptx-nvidiacl/lib/synchronization/barrier.cl

9 lines
137 B
Common Lisp

#include <clc/clc.h>
_CLC_DEF void barrier(cl_mem_fence_flags flags) {
if (flags & CLK_LOCAL_MEM_FENCE) {
__syncthreads();
}
}