Skip to content

Commit 5c18691

Browse files
author
Diptorup Deb
authored
Merge pull request #1041 from IntelPython/remove/njit_offload
Remove/njit offload
2 parents 87206fa + dd063f3 commit 5c18691

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+6
-7011
lines changed

numba_dpex/__init__.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ def parse_sem_version(version_string: str) -> Tuple[int, int, int]:
9494
from numba import prange # noqa E402
9595

9696
import numba_dpex.core.dpjit_dispatcher # noqa E402
97-
import numba_dpex.core.offload_dispatcher # noqa E402
9897

9998
# Initialize the _dpexrt_python extension
10099
import numba_dpex.core.runtime # noqa E402
@@ -111,16 +110,11 @@ def parse_sem_version(version_string: str) -> Tuple[int, int, int]:
111110
# Re-export all type names
112111
from numba_dpex.core.types import * # noqa E402
113112
from numba_dpex.dpnp_iface import dpnpimpl # noqa E402
114-
from numba_dpex.retarget import offload_to_sycl_device # noqa E402
115113

116114
if config.HAS_NON_HOST_DEVICE:
117115
# Re export
118116
from .core.targets import dpjit_target, kernel_target
119117
from .decorators import dpjit, func, kernel
120-
121-
# We are importing dpnp stub module to make Numba recognize the
122-
# module when we rename Numpy functions.
123-
from .dpnp_iface.stubs import dpnp
124118
from .ocl.stubs import (
125119
GLOBAL_MEM_FENCE,
126120
LOCAL_MEM_FENCE,
@@ -150,4 +144,4 @@ def parse_sem_version(version_string: str) -> Tuple[int, int, int]:
150144
__version__ = get_versions()["version"]
151145
del get_versions
152146

153-
__all__ = types.__all__ + ["offload_to_sycl_device"] + ["Range", "NdRange"]
147+
__all__ = types.__all__ + ["Range", "NdRange"]

numba_dpex/core/compiler.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
UnreachableError,
1515
)
1616
from numba_dpex.core.pipelines.kernel_compiler import KernelCompiler
17-
from numba_dpex.core.pipelines.offload_compiler import OffloadCompiler
1817

1918

2019
@global_compiler_lock
@@ -73,10 +72,6 @@ def compile_with_dpex(
7372
pipeline_class=KernelCompiler,
7473
)
7574
elif isinstance(pyfunc, ir.FunctionIR):
76-
# FIXME: Kernels in the form of Numba IR need to be compiled
77-
# using the offload compiler due to them retaining parfor
78-
# nodes due to the use of gufuncs. Once the kernel builder is
79-
# ready we should be able to switch to the KernelCompiler.
8075
cres = compiler.compile_ir(
8176
typingctx=typingctx,
8277
targetctx=targetctx,

numba_dpex/core/offload_dispatcher.py

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)