Debian Codegraph @

libclc/opencl/lib/amdgcn/synchronization/barrier.cl

raw
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8
9 #include <clc/opencl/explicit_fence/explicit_memory_fence.h>
10 #include <clc/opencl/synchronization/barrier.h>
11
12 _CLC_DEF _CLC_OVERLOAD void barrier(cl_mem_fence_flags flags) {
13 mem_fence(flags);
14 __builtin_amdgcn_s_barrier();
15 }