Closed
Description
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)