-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial check-in of some unary and binary elementwise functions #1203
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. |
dpctl/tensor/libtensor/include/kernels/elementwise_functions/common.hpp
Outdated
Show resolved
Hide resolved
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.cos
anddpctl.tensor.abs
,dpctl.tensor.isinf
,dpctl.tensor.isfinite
, anddpctl.tensor.divide
, anddpctl.tensor.equal
.