You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a typing library inside dpctl similar to сtypes._SimpleCData or even deriving from it to have wrappers for all SYCL types including reduced precision.
Add new types to Numba as needed (e.g. for reduced precision types and short vector).
Have Numba-dppy specific type inference so that we can infer types as dpctl types.
Pass dpctl types to backend C API and do the type casting only once there.
Reduced precision types are not planned at this point of time. I have opened a new ticket #1288 to track the discussion around SYCL vector type support in our front end API.
The rest of the task list around ctypes is now moot as the kernel is going to be switched to the Numba Dispatcher API and will use native Numba boxing and unboxing and the use of ctypes will be removed.
The basic goals are:
https://github.com/IntelPython/numba-dppy/blob/2d100c5524e62b1fbd56ca9a96b173a75cf45bec/numba_dppy/compiler.py#L456
https://github.com/IntelPython/dpctl/blob/609c8fd719ed61670127ad7c4e1dcbe783538ad6/dpctl/_sycl_queue.pyx#L116
https://github.com/IntelPython/dpctl/blob/0763b213e1c1b5508f36964be5083a1ebea7ccaf/dpctl-capi/source/dpctl_sycl_queue_interface.cpp#L52
https://github.com/IntelPython/numba-dppy/blob/3e05b689f0eb7c67cb8d9b3fd0ec8bcfad316969/numba_dppy/dppy_host_fn_call_gen.py#L161
Tasks:
Design requirements:
сtypes._SimpleCData
or even deriving from it to have wrappers for all SYCL types including reduced precision.Links:
Problems:
The text was updated successfully, but these errors were encountered: