From 91f9894547d77575ee7754ad06086f38c83eeede Mon Sep 17 00:00:00 2001 From: Diptorup Deb Date: Thu, 14 Mar 2024 02:16:19 -0500 Subject: [PATCH] Do not selectively apply spirv exts unconditionally do so in spirv_generator --- .../_atomic_ref_overloads.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/numba_dpex/experimental/_kernel_dpcpp_spirv_overloads/_atomic_ref_overloads.py b/numba_dpex/experimental/_kernel_dpcpp_spirv_overloads/_atomic_ref_overloads.py index aab3f238ce..1050b88872 100644 --- a/numba_dpex/experimental/_kernel_dpcpp_spirv_overloads/_atomic_ref_overloads.py +++ b/numba_dpex/experimental/_kernel_dpcpp_spirv_overloads/_atomic_ref_overloads.py @@ -20,10 +20,7 @@ MemoryScope, ) from numba_dpex.kernel_api.flag_enum import FlagEnum -from numba_dpex.kernel_api_impl.spirv.target import ( - CC_SPIR_FUNC, - LLVM_SPIRV_ARGS, -) +from numba_dpex.kernel_api_impl.spirv.target import CC_SPIR_FUNC from ...core.types.kernel_api.atomic_ref import AtomicRefType from ..target import DPEX_KERNEL_EXP_TARGET_NAME @@ -100,15 +97,6 @@ def gen(context, builder, sig, args): atomic_ref_ty ).get_field_position("ref") - # TODO: evaluating the llvm-spirv flags that dpcpp uses - context.extra_compile_options[LLVM_SPIRV_ARGS] = [ - "--spirv-ext=+SPV_EXT_shader_atomic_float_add" - ] - - context.extra_compile_options[LLVM_SPIRV_ARGS] = [ - "--spirv-ext=+SPV_EXT_shader_atomic_float_min_max" - ] - ptr_type = retty.as_pointer() ptr_type.addrspace = atomic_ref_ty.address_space