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

Change return type for "abs_diff" #458

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

gmlueck
Copy link
Contributor

@gmlueck gmlueck commented Aug 25, 2023

Change abs_diff so that its return type is the same as the type of its parameters. This makes the signature consistent with abs.

Closes internal issue 655.

Change `abs_diff` so that its return type is the same as the type of
its parameters.  This makes the signature consistent with `abs`.

Closes internal issue 655.
@gmlueck
Copy link
Contributor Author

gmlueck commented Aug 25, 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.

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 changed the base branch from gmlueck/gentype-funcs-v2 to SYCL-2020/master September 7, 2023 21:14
@gmlueck gmlueck marked this pull request as ready for review September 7, 2023 21:17
@tomdeakin
Copy link
Contributor

Ready to merge.

@gmlueck gmlueck merged commit 385ecd5 into KhronosGroup:SYCL-2020/master Sep 14, 2023
@gmlueck gmlueck deleted the gmlueck/abs-diff branch November 10, 2023 21:33
steffenlarsen added a commit to steffenlarsen/llvm that referenced this pull request Nov 16, 2023
As of KhronosGroup/SYCL-Docs#458 the return type
of abs_diff has been changed to be the same as the input arguments,
which in turn corresponds to how the extended OpenCL instruction set
defines `s_abs_diff`. This commit changes the preview builtins to use
the correct type as well as define `s_abs_diff` in accordance with
the OpenCL extended instruction set.

Signed-off-by: Larsen, Steffen <[email protected]>
steffenlarsen added a commit to steffenlarsen/SYCL-CTS that referenced this pull request Nov 16, 2023
Following KhronosGroup/SYCL-Docs#458 the return
type of abs_diff was changed to be the same as the input types. This
commit makes the corresponding changes to the CTS tests for it.

Signed-off-by: Larsen, Steffen <[email protected]>
steffenlarsen added a commit to steffenlarsen/llvm that referenced this pull request Nov 16, 2023
As of KhronosGroup/SYCL-Docs#458 the return type of abs_diff has been
changed to be the same as the input arguments, which in turn corresponds
to how the extended OpenCL instruction set defines s_abs_diff. This
commit changes the preview builtins to use the correct type similar to
how `sycl::abs` does.

Signed-off-by: Larsen, Steffen <[email protected]>
againull pushed a commit to intel/llvm that referenced this pull request Nov 21, 2023
As of KhronosGroup/SYCL-Docs#458 the return type of abs_diff has been
changed to be the same as the input arguments, which in turn corresponds
to how the extended OpenCL instruction set defines s_abs_diff. This
commit changes the preview builtins to use the correct type similar to
how `sycl::abs` does.

---------

Signed-off-by: Larsen, Steffen <[email protected]>
steffenlarsen added a commit to KhronosGroup/SYCL-CTS that referenced this pull request Nov 23, 2023
Following KhronosGroup/SYCL-Docs#458 the return
type of abs_diff was changed to be the same as the input types. This
commit makes the corresponding changes to the CTS tests for it.

Signed-off-by: Larsen, Steffen <[email protected]>
keryell pushed a commit that referenced this pull request Sep 10, 2024
Change return type for "abs_diff"
gmlueck added a commit that referenced this pull request Nov 7, 2024
Change return type for "abs_diff"

(cherry picked from commit 385ecd5)
gmlueck added a commit that referenced this pull request Nov 7, 2024
Change return type for "abs_diff"

(cherry picked from commit 385ecd5)
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