-
Notifications
You must be signed in to change notification settings - Fork 155
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
incorrect result for fp16 fract function for small negative inputs #307
Comments
Fixed in 0db1db3 |
It looks like the fix for this issue was backed out in 3cf68d7 So, it is still occurring. Can this issue be re-opened? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found during a review of new fp16 CTS tests:
KhronosGroup/OpenCL-CTS#1681 (review)
IGC is currently generating incorrect results for
fract
for small negative inputs. Specifically, it is returning1.0
, rather than a number close to but not quite1.0
.It looks like this is because IGC is using to the fp32 constant
0x1.fffffep-1f
rather than the fp16 constant0x1.ffcp-1f
:intel-graphics-compiler/IGC/BiFModule/Implementation/Math/fract.cl
Lines 288 to 295 in d9e9d29
If I use the fp16 constant instead:
Then I get the right results:
The text was updated successfully, but these errors were encountered: