Skip to content

[ESIMD] Fix unary math functions accepting saturation tag; fix ext_math.cpp test #10848

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 4 commits into from
Aug 23, 2023

Conversation

v-klochkov
Copy link
Contributor

@v-klochkov v-klochkov commented Aug 16, 2023

The test ext_math.cpp needed the fix for half type to avoid having only NaNs in inputs.

This patch also fixes the comment for saturate function when source and destination type
is same FP type. The previous comment wrongly said saturate() would clamp value to the range [-1.0, 1.0],
while in fact ESIMD intrinsic saturate and it is HW version always clamped to [0.0-1.0].

@v-klochkov v-klochkov requested a review from a team as a code owner August 16, 2023 20:35
…xt_math.cpp test

The test ext_math.cpp needed the fix for half type to avoid having NaNs in
inputs.

Signed-off-by: Vyacheslav N Klochkov <vyacheslav.n.klochkov@intel.com>
@v-klochkov v-klochkov force-pushed the esimd_saturate_intrin branch from 672aae2 to 37ddd6c Compare August 16, 2023 20:36
…math_saturate.cpp

Signed-off-by: Vyacheslav N Klochkov <vyacheslav.n.klochkov@intel.com>
Signed-off-by: Vyacheslav N Klochkov <vyacheslav.n.klochkov@intel.com>
@v-klochkov
Copy link
Contributor Author

The CI AMD/HIP fails are unrelated to this PR. Merging now.

@v-klochkov v-klochkov merged commit 7290092 into intel:sycl Aug 23, 2023
@v-klochkov v-klochkov deleted the esimd_saturate_intrin branch August 23, 2023 04:12
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