IntelPython / dpctl

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

Overloads for array-scalar and scalar-array broadcast element-wise functions #1815

Closed ndgrigorian closed 1 month ago

ndgrigorian commented 1 month ago

Supersedes #1814

This pull request implements overloads for broadcast arrays and scalars for element-wise functions, and adds kernels for these overloads for addition.

Also refactors how the type maps for in-place operators are implemented to improve code readability.

github-actions[bot] commented 1 month ago

Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. :crossed_fingers:

github-actions[bot] commented 1 month ago

Array API standard conformance tests for dpctl=0.18.0dev0=py310hdf72452_384 ran successfully. Passed: 869 Failed: 26 Skipped: 119

github-actions[bot] commented 1 month ago

Array API standard conformance tests for dpctl=0.18.0dev0=py310hdf72452_374 ran successfully. Passed: 868 Failed: 27 Skipped: 119

github-actions[bot] commented 1 month ago

Array API standard conformance tests for dpctl=0.18.0dev0=py310hdf72452_374 ran successfully. Passed: 894 Failed: 1 Skipped: 119

coveralls commented 1 month ago

Coverage Status

coverage: 87.9%. remained the same when pulling 72809a43d08b7debfdf0b25ddc44609bfc942f1e on scalar-overloads-for-elementwise-funcs into 2588eb5db0d17322128e3f0974242aedca126b23 on master.

ndgrigorian commented 1 month ago

Superseded by #1815

Array-scalar and scalar-array overloads to be investigated further for possibility of performance optimization.