Skip to content

[SYCL] Fix sycl::remquo truncation error #10105

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
Jun 28, 2023
Merged

Conversation

0x12CC
Copy link
Contributor

@0x12CC 0x12CC commented Jun 27, 2023

Certain quotient values are off by 1 since the conversion to int truncates the decimal value. Use std::round to round to the nearest integer before converting to int.

Certain quotient values are off by 1 since the conversion to `int`
truncates the decimal value. Use `std::round` to round to the nearest
integer before converting to `int`.

Signed-off-by: Michael Aziz <[email protected]>
@0x12CC 0x12CC requested a review from a team as a code owner June 27, 2023 19:47
@0x12CC 0x12CC temporarily deployed to aws June 27, 2023 20:04 — with GitHub Actions Inactive
@0x12CC 0x12CC temporarily deployed to aws June 27, 2023 20:43 — with GitHub Actions Inactive
@dm-vodopyanov dm-vodopyanov merged commit 43fbde3 into intel:sycl Jun 28, 2023
@0x12CC 0x12CC deleted the remquo_round branch June 28, 2023 14:13
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.

2 participants