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

[SYCL] Fix float-to-half conversion for minimum subnormal on host #7401

Merged
merged 2 commits into from
Nov 18, 2022

Conversation

steffenlarsen
Copy link
Contributor

Currently when converting a floating point value representing the minimum subnormal value for half to a half on host will result in 0 rather than the expected minimum value. This is due to a faulty check for the minimum supported single-precision exponent when converting. This commit fixes this check.

Currently when converting a floating point value representing the
minimum subnormal value for half to a half on host will result in 0
rather than the expected minimum value. This is due to a faulty check
for the minimum supported single-precision exponent when converting.
This commit fixes this check.

Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
@steffenlarsen steffenlarsen requested a review from a team as a code owner November 15, 2022 17:19
steffenlarsen added a commit to steffenlarsen/llvm-test-suite that referenced this pull request Nov 16, 2022
intel/llvm#7401 fixes host-side minimal
subnormal half values, which in turn fixes generate_ref_conv_data
in value_conv.hpp. This causes ctor_broadcast_fp_extra to unexpectedly
pass. This commit enables ctor_broadcast_fp_extra.

Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
@steffenlarsen
Copy link
Contributor Author

/verify with intel/llvm-test-suite#1387

Copy link
Contributor

@KseniyaTikhomirova KseniyaTikhomirova left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
@steffenlarsen steffenlarsen merged commit 514708b into intel:sycl Nov 18, 2022
steffenlarsen added a commit to intel/llvm-test-suite that referenced this pull request Nov 18, 2022
intel/llvm#7401 fixes host-side minimal
subnormal half values, which in turn fixes generate_ref_conv_data
in value_conv.hpp. This causes ctor_broadcast_fp_extra to unexpectedly
pass. This commit enables ctor_broadcast_fp_extra.

Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
…est-suite#1387)

intel#7401 fixes host-side minimal
subnormal half values, which in turn fixes generate_ref_conv_data
in value_conv.hpp. This causes ctor_broadcast_fp_extra to unexpectedly
pass. This commit enables ctor_broadcast_fp_extra.

Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
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