-
Notifications
You must be signed in to change notification settings - Fork 32
Custom implementation of isfinite #1383
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
Conversation
|
View rendered docs @ https://intelpython.github.io/dpctl/pulls/1383/index.html |
|
Array API standard conformance tests for dpctl=0.14.6dev4=py310ha25a700_37 ran successfully. |
|
Array API standard conformance tests for dpctl=0.14.6dev4=py310ha25a700_38 ran successfully. |
|
@ndgrigorian This PR has fixed SYCL-OS workflow. |
|
|
||
| namespace py = pybind11; | ||
| namespace td_ns = dpctl::tensor::type_dispatch; | ||
| namespace mu_ns = dpctl::tensor::math_utils; |
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.
In isnan.hpp, math_utils is imported and the namespace is set, but never used to call mu_ns::isnan
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.
Pushed the fix. Thanks for spotting that out @ndgrigorian . I was after std::isnan instances and missed sycl::isnan.
|
Array API standard conformance tests for dpctl=0.14.6dev4=py310ha25a700_39 ran successfully. |
|
Since the issue has been fixed in SYCLOS, perhaps this PR can wait. |
2999014 to
065b2d2
Compare
|
Array API standard conformance tests for dpctl=0.14.6dev4=py310ha25a700_54 ran successfully. |
1 similar comment
|
Array API standard conformance tests for dpctl=0.14.6dev4=py310ha25a700_54 ran successfully. |
This works-around a bug in std::isinfite recently introduced in SYCLOS where std::isfinite(-0.0) returns false for floating point types, including sycl::half, float, double.
065b2d2 to
4ff0543
Compare
|
Array API standard conformance tests for dpctl=0.14.6dev5=py310ha25a700_4 ran successfully. |
|
Closing as no longer relevant |
This PR should address issues test failures from gh-1378
It works around very annoying SYCLOS bug introduced with pull down of clang 18.0
It adds a custom implementation of
math_utils::isfiniteto work around this failure.