Skip to content

Commit 803c180

Browse files
author
Diptorup Deb
committed
Move experimental.kernel_iface into top-level module.
1 parent f59d9e8 commit 803c180

File tree

9 files changed

+13
-11
lines changed

9 files changed

+13
-11
lines changed

numba_dpex/experimental/_kernel_dpcpp_spirv_overloads/_atomic_ref_overloads.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,14 @@
1515
from numba_dpex.core.targets.kernel_target import CC_SPIR_FUNC, LLVM_SPIRV_ARGS
1616
from numba_dpex.core.types import USMNdArray
1717
from numba_dpex.experimental.flag_enum import FlagEnum
18+
from numba_dpex.kernel_iface import (
19+
AddressSpace,
20+
AtomicRef,
21+
MemoryOrder,
22+
MemoryScope,
23+
)
1824

1925
from ..dpcpp_types import AtomicRefType
20-
from ..kernel_iface import AddressSpace, AtomicRef, MemoryOrder, MemoryScope
2126
from ..target import DPEX_KERNEL_EXP_TARGET_NAME
2227
from ._spv_atomic_inst_helper import (
2328
get_atomic_inst_name,

numba_dpex/experimental/_kernel_dpcpp_spirv_overloads/_spv_atomic_inst_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
from numba.core import types
1010

11-
from ..kernel_iface import MemoryOrder, MemoryScope
11+
from numba_dpex.kernel_iface import MemoryOrder, MemoryScope
1212

1313

1414
class _SpvScope(IntEnum):

numba_dpex/experimental/kernel_iface/__init__.py renamed to numba_dpex/kernel_iface/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

5-
"""The kernel_iface provides a set of Python classes and functions that are
5+
"""
6+
The kernel_iface provides a set of Python classes and functions that are
67
analogous to the C++ SYCL API. The kernel_iface API is meant to allow
78
prototyping SYCL-like kernels in pure Python before compiling them using
89
numba_dpex.kernel.

numba_dpex/tests/experimental/kernel_iface/spv_overloads/test_atomic_fetch_phi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import numba_dpex as dpex
1010
import numba_dpex.experimental as dpex_exp
11-
from numba_dpex.experimental.kernel_iface import AtomicRef
11+
from numba_dpex.kernel_iface import AtomicRef
1212
from numba_dpex.tests._helper import get_all_dtypes
1313

1414
list_of_supported_dtypes = get_all_dtypes(

numba_dpex/tests/experimental/kernel_iface/spv_overloads/test_atomic_load_store.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
import numba_dpex as dpex
1111
import numba_dpex.experimental as dpex_exp
12-
from numba_dpex.experimental.kernel_iface import AtomicRef
12+
from numba_dpex.kernel_iface import AtomicRef
1313
from numba_dpex.tests._helper import get_all_dtypes
1414

1515
list_of_supported_dtypes = get_all_dtypes(

numba_dpex/tests/experimental/kernel_iface/spv_overloads/test_atomic_ref.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import numba_dpex as dpex
1010
import numba_dpex.experimental as dpex_exp
11-
from numba_dpex.experimental.kernel_iface import AddressSpace, AtomicRef
11+
from numba_dpex.kernel_iface import AddressSpace, AtomicRef
1212

1313

1414
def test_atomic_ref_compilation():

numba_dpex/tests/experimental/kernel_iface/test_memory_enum_compilation.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@
66

77
import numba_dpex.experimental as exp_dpex
88
from numba_dpex import Range
9-
from numba_dpex.experimental.kernel_iface import (
10-
AddressSpace,
11-
MemoryOrder,
12-
MemoryScope,
13-
)
9+
from numba_dpex.kernel_iface import AddressSpace, MemoryOrder, MemoryScope
1410

1511

1612
def test_compilation_of_memory_order():

0 commit comments

Comments
 (0)