summaryrefslogtreecommitdiff
path: root/libclc/opencl/lib/amdgcn/synchronization/barrier.cl
diff options
context:
space:
mode:
Diffstat (limited to 'libclc/opencl/lib/amdgcn/synchronization/barrier.cl')
-rw-r--r--libclc/opencl/lib/amdgcn/synchronization/barrier.cl5
1 files changed, 3 insertions, 2 deletions
diff --git a/libclc/opencl/lib/amdgcn/synchronization/barrier.cl b/libclc/opencl/lib/amdgcn/synchronization/barrier.cl
index c8322e602302..dd7d1507f5ad 100644
--- a/libclc/opencl/lib/amdgcn/synchronization/barrier.cl
+++ b/libclc/opencl/lib/amdgcn/synchronization/barrier.cl
@@ -11,7 +11,8 @@
#include <clc/synchronization/clc_work_group_barrier.h>
_CLC_DEF _CLC_OVERLOAD void barrier(cl_mem_fence_flags flags) {
- int memory_scope = getCLCMemoryScope(flags);
+ int memory_scope = __opencl_get_memory_scope(flags);
int memory_order = __ATOMIC_SEQ_CST;
- __clc_work_group_barrier(memory_scope, memory_order);
+ __CLC_MemorySemantics memory_semantics = __opencl_get_memory_semantics(flags);
+ __clc_work_group_barrier(memory_scope, memory_order, memory_semantics);
}