Jan Vesely | 999b1d9 | 2017-08-16 17:09:00 | [diff] [blame] | 1 | #include <clc/clc.h> |
2 | |||||
Daniel Stone | 3d21fa5 | 2020-08-17 20:44:49 | [diff] [blame] | 3 | _CLC_DEF _CLC_OVERLOAD void barrier(cl_mem_fence_flags flags) { |
4 | mem_fence(flags); | ||||
5 | __builtin_amdgcn_s_barrier(); | ||||
Jan Vesely | 999b1d9 | 2017-08-16 17:09:00 | [diff] [blame] | 6 | } |