IntelPython / dpctl

Python SYCL bindings and SYCL-based Python Array API library
https://intelpython.github.io/dpctl/
Apache License 2.0
97 stars 29 forks source link

Request to add `py_unary_ufunc` and `py_binary_ufunc` functions to dpctl tensor headers #1710

Open antonwolfy opened 3 weeks ago

antonwolfy commented 3 weeks ago

The core part of functionality to add any elementwise function is quite similar between dpnp and dpctl. In scope of gh-1868 I proposed changes to dpnp code to add the same implementation per py_unary_ufunc and py_binary_ufunc functions from dpctl headers. And also updated exiting ufuncs from vm pybind11 extension to migrate and ti reuse these functions.

The issue is a request to expose py_unary_ufunc and py_binary_ufunc functions as part of dpctl tensor header if it's possible.