The PR makes implementation changes in vm extension to further reuse of dpctl tensor f/w around py_unary_ufunc and py_binary_ufunc functions.
Where the new added files under dpnp/backend/extensions/elementwise_functions folder should be replaced by proper dpctl tensor headers.
The same f/w can be later reused while adding implementation of elementwise functions which are not available in dpctl.
Also the PR splits each function to separate dedicated source and header files instead of single big source file.
[x] Have you provided a meaningful PR description?
[ ] Have you added a test, reproducer or referred to issue with a reproducer?
[ ] Have you tested your changes locally for CPU and GPU devices?
[ ] Have you made sure that new changes do not introduce compiler warnings?
[ ] Have you checked performance impact of proposed changes?
[x] If this PR is a work in progress, are you filing the PR as a draft?
The PR makes implementation changes in
vm
extension to further reuse of dpctl tensor f/w aroundpy_unary_ufunc
andpy_binary_ufunc
functions. Where the new added files underdpnp/backend/extensions/elementwise_functions
folder should be replaced by proper dpctl tensor headers. The same f/w can be later reused while adding implementation of elementwise functions which are not available in dpctl.Also the PR splits each function to separate dedicated source and header files instead of single big source file.