Skip to content

Commit

Permalink
Do not selectively apply spirv exts unconditionally do so in spirv_ge…
Browse files Browse the repository at this point in the history
…nerator
  • Loading branch information
Diptorup Deb committed Mar 15, 2024
1 parent 200bf8d commit 91f9894
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 91f9894

Please sign in to comment.