Skip to content
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

Fix defs of "fast_length" and "fast_normalize" #442

Merged

Conversation

gmlueck
Copy link
Contributor

@gmlueck gmlueck commented Jul 21, 2023

It appears that these function definitions were incorrectly transcribed from OpenCL. In OpenCL, they rely on the half-precision versions of sqrt and rsqrt, not the overloads that take half types.

Closes internal issue 656.

@gmlueck
Copy link
Contributor Author

gmlueck commented Jul 21, 2023

IMPORTANT!

This is currently a "stacked" PR on top of #440. Once #440 is merged, this PR should be retargeted to the "SYCL-2020/master" branch.

It appears that these function definitions were incorrectly
transcribed from OpenCL.  In OpenCL, they rely on the half-precision
versions of `sqrt` and `rsqrt`, not the overloads that take `half`
types.

Closes internal issue 656.
@gmlueck gmlueck force-pushed the gmlueck/fast-uses-half-precision branch from 98dbf7c to a0a03c7 Compare July 21, 2023 21:23
adoc/chapters/programming_interface.adoc Outdated Show resolved Hide resolved
adoc/chapters/programming_interface.adoc Outdated Show resolved Hide resolved
gmlueck and others added 3 commits August 21, 2023 16:29
Co-authored-by: Ronan Keryell <ronan@keryell.fr>
Co-authored-by: Ronan Keryell <ronan@keryell.fr>
Copy link
Member

@keryell keryell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@gmlueck gmlueck marked this pull request as draft August 24, 2023 21:02
@gmlueck gmlueck changed the base branch from gmlueck/gentype-funcs-v2 to SYCL-2020/master September 7, 2023 21:24
@gmlueck gmlueck marked this pull request as ready for review September 7, 2023 21:24
@tomdeakin
Copy link
Contributor

Ready to merge.

@gmlueck gmlueck merged commit e63b8b7 into KhronosGroup:SYCL-2020/master Sep 14, 2023
2 checks passed
@gmlueck gmlueck deleted the gmlueck/fast-uses-half-precision branch November 10, 2023 21:34
keryell pushed a commit that referenced this pull request Sep 10, 2024
Fix defs of "fast_length" and "fast_normalize"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants