Skip to content

[SYCL] Widen (u)int8/16 to (u)int32 and half to float in group_broadcast #5110

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 3 commits into from
Dec 19, 2021
Merged

Conversation

dnmokhov
Copy link
Contributor

@dnmokhov dnmokhov commented Dec 9, 2021

CPU device does not yet support the (u)int8/16 and half versions.

CPU device does not yet support the (u)int8/16 and half versions.
@dnmokhov
Copy link
Contributor Author

dnmokhov commented Dec 9, 2021

/summary:run

@dnmokhov dnmokhov marked this pull request as ready for review December 9, 2021 06:24
@dnmokhov dnmokhov requested review from AlexeySachkov, Pennycook and a team as code owners December 9, 2021 06:24
@Pennycook
Copy link
Contributor

CPU device does not yet support the (u)int8/16 and half versions.

Are there plans to revert this change when the CPU device adds support for these functions?

- Add FIXMEs.
- Bitcast half to int16_t (and then widen to int32_t) to keep the precision.
- Refactor the widening code into a separate helper.
- Add tests for all 3 group_broadcast overloads.
@dnmokhov
Copy link
Contributor Author

/summary:run

@dnmokhov
Copy link
Contributor Author

CPU device does not yet support the (u)int8/16 and half versions.

Are there plans to revert this change when the CPU device adds support for these functions?

There are. I have just added a couple of FIXME messages accordingly.

@vladimirlaz vladimirlaz merged commit 1f3f9b9 into intel:sycl Dec 19, 2021
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