Skip to content

Convert the kernel API oclimpl intrinsic functions to overloads and move into a submodule inside core #795

Closed
@diptorupd

Description

@diptorupd

The intrinsic functions in the kernel API are presently called using the numba_dpex module qualifier. It may be cleaner conceptually if these functions are moved to a sycl submodule. Doing so will help people to easily port SYCL kernels to dpex kernels.

E.g.,

from numba_dpex import sycl

@sycl.kernel
def vecadd(a,b,c):
   i = sycl.get_global_id(0)
   a[i] = b[i] + c[i]

Having the module qualifier is much better in terms of overall readability and letting users know that the code is specific to the numba_dpex kernel API and will not work outside of the kernel function or without the kernel decorator.

Originally posted by @diptorupd in #694 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions