Skip to content

Commit e0bfd87

Browse files
author
Diptorup Deb
committed
Remove the legacy OCL-like kernel API implementation.
1 parent 4deff1a commit e0bfd87

File tree

7 files changed

+2
-1049
lines changed

7 files changed

+2
-1049
lines changed

numba_dpex/__init__.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -98,23 +98,6 @@ def parse_sem_version(version_string: str) -> Tuple[int, int, int]:
9898
from .core.decorators import device_func, dpjit, kernel # noqa E402
9999
from .core.kernel_launcher import call_kernel, call_kernel_async # noqa E402
100100
from .core.targets import dpjit_target # noqa E402
101-
from .ocl.stubs import ( # noqa E402
102-
GLOBAL_MEM_FENCE,
103-
LOCAL_MEM_FENCE,
104-
atomic,
105-
barrier,
106-
get_global_id,
107-
get_global_size,
108-
get_group_id,
109-
get_local_id,
110-
get_local_size,
111-
get_num_groups,
112-
get_work_dim,
113-
local,
114-
mem_fence,
115-
private,
116-
sub_group_barrier,
117-
)
118101

119102
load_dpctl_sycl_interface()
120103
del load_dpctl_sycl_interface

numba_dpex/kernel_api_impl/spirv/target.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,8 @@ def resolve_getattr(self, typ, attr):
102102
def load_additional_registries(self):
103103
"""Register the OpenCL API and math and other functions."""
104104
# pylint: disable=import-outside-toplevel
105-
from numba_dpex.ocl import mathdecl, ocldecl
105+
from numba_dpex.ocl import mathdecl
106106

107-
self.install_registry(ocldecl.registry)
108107
self.install_registry(mathdecl.registry)
109108
self.install_registry(cmathdecl.registry)
110109
self.install_registry(dpnpdecl.registry)
@@ -295,9 +294,8 @@ def load_additional_registries(self):
295294
from numba_dpex import printimpl
296295
from numba_dpex.dpctl_iface import dpctlimpl
297296
from numba_dpex.dpnp_iface import dpnpimpl
298-
from numba_dpex.ocl import mathimpl, oclimpl
297+
from numba_dpex.ocl import mathimpl
299298

300-
self.insert_func_defn(oclimpl.registry.functions)
301299
self.insert_func_defn(mathimpl.registry.functions)
302300
self.insert_func_defn(dpnpimpl.registry.functions)
303301
self.install_registry(printimpl.registry)

numba_dpex/ocl/atomics/__init__.py

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

numba_dpex/ocl/atomics/atomic_helper.py

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

0 commit comments

Comments
 (0)