Skip to content

Commit

Permalink
Reorganize new features that belong to experimental module.
Browse files Browse the repository at this point in the history
  • Loading branch information
Diptorup Deb committed Nov 2, 2023
1 parent 5777b67 commit a3174fc
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 5 deletions.
2 changes: 0 additions & 2 deletions numba_dpex/core/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# SPDX-License-Identifier: Apache-2.0

from .array_type import Array
from .dpcpp_types import AtomicRefType
from .dpctl_types import DpctlSyclEvent, DpctlSyclQueue
from .dpnp_ndarray_type import DpnpNdArray
from .literal_intenum_type import IntEnumLiteral
Expand Down Expand Up @@ -35,7 +34,6 @@

__all__ = [
"Array",
"AtomicRefType",
"DpctlSyclQueue",
"DpctlSyclEvent",
"DpnpNdArray",
Expand Down
2 changes: 1 addition & 1 deletion numba_dpex/core/typing/typeof.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
from numba_dpex.core.kernel_interface.dpcpp_iface import AtomicRef
from numba_dpex.utils import address_space

from ...experimental.dpcpp_types import AtomicRefType
from ..kernel_interface.indexers import NdRange, Range
from ..types.dpcpp_types import AtomicRefType
from ..types.dpctl_types import DpctlSyclEvent, DpctlSyclQueue
from ..types.dpnp_ndarray_type import DpnpNdArray
from ..types.range_types import NdRangeType, RangeType
Expand Down
13 changes: 12 additions & 1 deletion numba_dpex/experimental/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
from numba.core.imputils import Registry

from .decorators import kernel
from .dpcpp_iface import AddressSpace, AtomicRef, MemoryOrder, MemoryScope
from .dpcpp_types import AtomicRefType
from .kernel_dispatcher import KernelDispatcher
from .launcher import call_kernel
from .models import *
Expand All @@ -26,4 +28,13 @@ def dpex_dispatcher_const(context):
return context.get_dummy_value()


__all__ = ["kernel", "KernelDispatcher", "call_kernel"]
__all__ = [
"kernel",
"call_kernel",
"AddressSpace",
"AtomicRef",
"AtomicRefType",
"KernelDispatcher",
"MemoryOrder",
"MemoryScope",
]
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# SPDX-FileCopyrightText: 2020 - 2023 Intel Corporation
# SPDX-FileCopyrightText: 2023 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0

"""Python classes that are analogous to dpcpp's SYCL API used to write kernels.
"""

from .atomic_ref import AtomicRef
from .memory_enums import AddressSpace, MemoryOrder, MemoryScope

Expand Down
File renamed without changes.

0 comments on commit a3174fc

Please sign in to comment.