Skip to content

Commit

Permalink
Merge pull request IntelPython#1383 from IntelPython/unconditionally_…
Browse files Browse the repository at this point in the history
…apply_spv_exts

Do not selectively apply spirv exts unconditionally do so in spirv_generator
  • Loading branch information
Diptorup Deb authored Mar 15, 2024
2 parents 200bf8d + 91f9894 commit af24e66
Showing 1 changed file with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit af24e66

Please sign in to comment.