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
dpctl.tensor.abs() does not work on Iris Xe on Windows #1279
Labels
bug
Something isn't working
Comments
This problem is Windows specific, and can not be reproduced on Linux. |
oleksandr-pavlyk
changed the title
dpctl.tensor.abs() does not work on Iris Xe
dpctl.tensor.abs() does not work on Iris Xe on Windows
Jul 25, 2023
oleksandr-pavlyk
added a commit
that referenced
this issue
Aug 15, 2023
Provide cabs private method implementating abs for complex types, paying attention to array-API mandated special values. To work-around gh-1279, use std::hypot to compute value for finite inputs. Compile with -DUSE_STD_ABS_FOR_COMPLEX_TYPES to use std::abs(z) instead of std::hypot(std::real(z), std::imag(z)).
oleksandr-pavlyk
added a commit
that referenced
this issue
Aug 15, 2023
This change provides private method csqrt to evaluate square-root for complex types. It handles special values as mandated by array API. The finite input, it provides its own implementation based on std::hypot and std::sqrt for real types instead of calling std::sqrt on finite input of complex type. Compile with -DUSE_STD_SQRT_FOR_COMPLEX_TYPES to use std::sqrt instead of custom implementation. Cursory performance study suggests that custom implementation is at least not worse than std::sqrt one.
6 tasks
oleksandr-pavlyk
added a commit
that referenced
this issue
Aug 15, 2023
Provide cabs private method implementating abs for complex types, paying attention to array-API mandated special values. To work-around gh-1279, use std::hypot to compute value for finite inputs. Compile with -DUSE_STD_ABS_FOR_COMPLEX_TYPES to use std::abs(z) instead of std::hypot(std::real(z), std::imag(z)).
oleksandr-pavlyk
added a commit
that referenced
this issue
Aug 15, 2023
This change provides private method csqrt to evaluate square-root for complex types. It handles special values as mandated by array API. The finite input, it provides its own implementation based on std::hypot and std::sqrt for real types instead of calling std::sqrt on finite input of complex type. Compile with -DUSE_STD_SQRT_FOR_COMPLEX_TYPES to use std::sqrt instead of custom implementation. Cursory performance study suggests that custom implementation is at least not worse than std::sqrt one.
oleksandr-pavlyk
added a commit
that referenced
this issue
Aug 18, 2023
Fix gh-1279, implement tensor.allclose
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: