-
Notifications
You must be signed in to change notification settings - Fork 795
[SYCL] Fix acos edge case #14026
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
[SYCL] Fix acos edge case #14026
Conversation
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.
SYCL E2E LGTM
|
|
||
| q.single_task([=] { | ||
| for (int i = 0; i < N; ++i) { | ||
| p[i] = std::acos(data[i][0]); |
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.
Note: we do not guarantee that std::acos works in kernels. But we should be supporting ::cacos according to our docs.
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.
Interesting, it seems we are still testing the std::complex math functions in our testing though: https://github.com/intel/llvm/blob/sycl/sycl/test-e2e/DeviceLib/std_complex_math_fp64_test.cpp
|
Windows pre-commit failed due to seemingly infrastructure issue and we had a clean run of it before merge commit here, so I will proceed with merging this PR |
No description provided.