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

9 lines
147 B
Common Lisp

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