Skip to content

[Matrix][SYCL] Add explicit conversion in wi_element when it is necessary #5279

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

Merged
merged 1 commit into from
Jan 12, 2022

Conversation

yubingex007-a11y
Copy link
Contributor

@yubingex007-a11y yubingex007-a11y commented Jan 11, 2022

Previously, there was a potential issue of deduced conflicting types because we didn't take integral promotion into consideration
Now, we add explicit conversion where integral promotion might happen to avoid such issues to appear.

…sary

Previously, there was a potential issue of deduced conflicting types because we didn't take integral promotion into consideration
Now, we add explicit conversion where integral promotion might happen to avoid such issues to appear.
@yubingex007-a11y yubingex007-a11y requested a review from a team as a code owner January 11, 2022 08:10
@yubingex007-a11y yubingex007-a11y changed the title [Matrix][SYCL] Add explicit conversion in wi_element when it is neces… [Matrix][SYCL] Add explicit conversion in wi_element when it is necessary Jan 11, 2022
@yubingex007-a11y
Copy link
Contributor Author

Hi, @dkhaldi this is for the second bug which you mentioned, https://godbolt.org/z/f143vE58x is a reproduce for slice’s bug, and it is an issue of template deduction and integral promotion. It can be fixed by https://godbolt.org/z/M3j3KcEhh.
This patch reflect the fix in https://godbolt.org/z/M3j3KcEhh.

@yubingex007-a11y
Copy link
Contributor Author

@bader is the checkin's fail a known issue?

@bader
Copy link
Contributor

bader commented Jan 11, 2022

@yubingex007-a11y, no.

@bader
Copy link
Contributor

bader commented Jan 11, 2022

I've opened intel/llvm-test-suite#720 to fix these tests.

@yubingex007-a11y
Copy link
Contributor Author

I've opened intel/llvm-test-suite#720 to fix these tests.

Awesome thanks for your quick response.

Copy link
Contributor

@dkhaldi dkhaldi left a comment

Choose a reason for hiding this comment

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

LGTM

@yubingex007-a11y
Copy link
Contributor Author

@bader could you help us merge it?

@vladimirlaz vladimirlaz merged commit 504d533 into intel:sycl Jan 12, 2022
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