Skip to content

Commit

Permalink
Merge pull request #1328 from IntelPython/refactor/experimental_to_core
Browse files Browse the repository at this point in the history
Migrates more features from experimental to core modules
  • Loading branch information
Diptorup Deb authored Feb 12, 2024
2 parents 12f89a4 + e450081 commit 6290156
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 21 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
LLVM_SPIRV_ARGS,
)

from ..dpcpp_types import AtomicRefType
from ...core.types.kernel_api.atomic_ref import AtomicRefType
from ..target import DPEX_KERNEL_EXP_TARGET_NAME
from ._spv_atomic_inst_helper import (
get_atomic_inst_name,
get_memory_semantics_mask,
get_scope,
)
from .spv_fn_generator import (
from .spv_atomic_fn_declarations import (
get_or_insert_atomic_load_fn,
get_or_insert_spv_atomic_compare_exchange_fn,
get_or_insert_spv_atomic_exchange_fn,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from numba.extending import intrinsic, overload

from numba_dpex.core import itanium_mangler as ext_itanium_mangler
from numba_dpex.experimental.core.types.kernel_api.items import GroupType
from numba_dpex.core.types.kernel_api.index_space_ids import GroupType
from numba_dpex.experimental.target import DPEX_KERNEL_EXP_TARGET_NAME
from numba_dpex.kernel_api import group_barrier
from numba_dpex.kernel_api.memory_enums import MemoryOrder, MemoryScope
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from numba.core.errors import TypingError
from numba.extending import intrinsic, overload_method

from numba_dpex.experimental.core.types.kernel_api.items import (
from numba_dpex.core.types.kernel_api.index_space_ids import (
GroupType,
ItemType,
NdItemType,
Expand Down
3 changes: 0 additions & 3 deletions numba_dpex/experimental/core/__init__.py

This file was deleted.

3 changes: 0 additions & 3 deletions numba_dpex/experimental/core/types/__init__.py

This file was deleted.

3 changes: 0 additions & 3 deletions numba_dpex/experimental/core/types/kernel_api/__init__.py

This file was deleted.

8 changes: 4 additions & 4 deletions numba_dpex/experimental/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
from numba_dpex import dpjit
from numba_dpex.core.targets.dpjit_target import DPEX_TARGET_NAME
from numba_dpex.core.types import DpctlSyclEvent, NdRangeType, RangeType
from numba_dpex.core.utils import kernel_launcher as kl
from numba_dpex.dpctl_iface import libsyclinterface_bindings as sycl
from numba_dpex.dpctl_iface.wrappers import wrap_event_reference
from numba_dpex.experimental.core.types.kernel_api.items import (
from numba_dpex.core.types.kernel_api.index_space_ids import (
ItemType,
NdItemType,
)
from numba_dpex.core.utils import kernel_launcher as kl
from numba_dpex.dpctl_iface import libsyclinterface_bindings as sycl
from numba_dpex.dpctl_iface.wrappers import wrap_event_reference
from numba_dpex.kernel_api_impl.spirv.dispatcher import (
SPIRVKernelDispatcher,
_SPIRVKernelCompileResult,
Expand Down
4 changes: 2 additions & 2 deletions numba_dpex/experimental/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
from numba.core.extending import register_model

import numba_dpex.core.datamodel.models as dpex_core_models
from numba_dpex.experimental.core.types.kernel_api.items import (
from numba_dpex.core.types.kernel_api.index_space_ids import (
GroupType,
ItemType,
NdItemType,
)

from .dpcpp_types import AtomicRefType
from ..core.types.kernel_api.atomic_ref import AtomicRefType
from .types import KernelDispatcherType


Expand Down
4 changes: 2 additions & 2 deletions numba_dpex/experimental/typeof.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@

from numba.extending import typeof_impl

from numba_dpex.experimental.core.types.kernel_api.items import (
from numba_dpex.core.types.kernel_api.index_space_ids import (
GroupType,
ItemType,
NdItemType,
)
from numba_dpex.kernel_api import AtomicRef, Group, Item, NdItem

from .dpcpp_types import AtomicRefType
from ..core.types.kernel_api.atomic_ref import AtomicRefType


@typeof_impl.register(AtomicRef)
Expand Down

0 comments on commit 6290156

Please sign in to comment.