From 3fddb6d48d34f9b74613fd65df1f51b7e27180b6 Mon Sep 17 00:00:00 2001 From: Ivan Butygin Date: Sat, 4 Nov 2023 14:31:12 +0100 Subject: [PATCH] Fix barrier issue --- numba_dpex/ocl/oclimpl.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/numba_dpex/ocl/oclimpl.py b/numba_dpex/ocl/oclimpl.py index e47bb215c4..e1e3f60c77 100644 --- a/numba_dpex/ocl/oclimpl.py +++ b/numba_dpex/ocl/oclimpl.py @@ -105,6 +105,7 @@ def barrier_one_arg_impl(context, builder, sig, args): barrier = _declare_function( context, builder, "barrier", sig, ["unsigned int"] ) + barrier.attributes.add("noduplicate") builder.call(barrier, [flags]) return _void_value @@ -116,6 +117,7 @@ def barrier_no_arg_impl(context, builder, sig, args): barrier = _declare_function( context, builder, "barrier", sig, ["unsigned int"] ) + barrier.attributes.add("noduplicate") flags = context.get_constant(types.uint32, stubs.GLOBAL_MEM_FENCE) builder.call(barrier, [flags]) return _void_value @@ -138,6 +140,7 @@ def sub_group_barrier_impl(context, builder, sig, args): barrier = _declare_function( context, builder, "barrier", sig, ["unsigned int"] ) + barrier.attributes.add("noduplicate") flags = context.get_constant(types.uint32, stubs.LOCAL_MEM_FENCE) builder.call(barrier, [flags]) return _void_value