Initial check-in of some unary and binary elementwise functions#1203
Initial check-in of some unary and binary elementwise functions#1203oleksandr-pavlyk merged 52 commits intomasterfrom
Conversation
|
View rendered docs @ https://intelpython.github.io/dpctl/pulls/1203/index.html |
Corrected/added checks for validity of sub-groups reads/writes. Added -fno-approx-func flag to compile element-wise functions, as well as -fno-finite-math-only flag. Fixed test_cos_order test to account for NumPy using float16 for intermediate computations for inputs of type "i1", but CPU RT does not support float16.
|
Array API standard conformance tests for dpctl=0.14.3dev1=py310h76be34b_51 ran successfully. |
|
Array API standard conformance tests for dpctl=0.14.3dev1=py310h76be34b_52 ran successfully. |
|
Array API standard conformance tests for dpctl=0.14.3dev1=py310h76be34b_54 ran successfully. |
…rided unary functors Added tests,
|
The build failure occurs due to use of Using |
…el/tools to get it until it comes online from conda-forge
This calls crashing test_tensor_elementwise under gdb in batch mode in CI. gdb call exit code is ignored
|
Array API standard conformance tests for dpctl=0.14.3dev1=py310h76be34b_82 ran successfully. |
|
Array API standard conformance tests for dpctl=0.14.3dev1=py310h76be34b_103 ran successfully. |
|
Array API standard conformance tests for dpctl=0.14.3dev1=py310h76be34b_104 ran successfully. |
|
Array API standard conformance tests for dpctl=0.14.3dev1=py310h76be34b_105 ran successfully. |
|
Array API standard conformance tests for dpctl=0.14.3dev1=py310h76be34b_106 ran successfully. |
Also consolidated various *impl_fn_ptr_t which were common among unary functions, and among binary functions into common reused types.
|
Array API standard conformance tests for dpctl=0.14.3dev1=py310h76be34b_107 ran successfully. |
Also ensure that test_add_order exercises non-same dtypes to improve coverage.
…ns-out-keyword Feature/elementwise functions out keyword
|
Array API standard conformance tests for dpctl=0.14.3dev1=py310h76be34b_114 ran successfully. |
3cf142e to
62f2d46
Compare
|
Array API standard conformance tests for dpctl=0.14.3dev1=py310h76be34b_115 ran successfully. |
ndgrigorian
left a comment
There was a problem hiding this comment.
I've looked over the out keyword addition and tested it out.
I think this is ready to be merged. This will be a great addition.
|
Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞 |
|
Array API standard conformance tests for dpctl=0.14.3dev1=py310h76be34b_115 ran successfully. |
This is a draft PR to review/refine implementation of elementwise functions in
dpctl.tensor.This checks in implementations of
dpctl.tensor.add,dpctl.tensor.isnan,dpctl.tensor.cosanddpctl.tensor.abs,dpctl.tensor.isinf,dpctl.tensor.isfinite, anddpctl.tensor.divide, anddpctl.tensor.equal.