-
Notifications
You must be signed in to change notification settings - Fork 14.3k
libclc: increase fp16 support #98149
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
Conversation
Those implementations have been tested using 1 Intel and 1 AMD devices (with clvk/clspv) |
@alan-baker @kpet , could you please review? |
✅ With the latest revision this PR passed the Python code formatter. |
✅ With the latest revision this PR passed the C/C++ code formatter. |
c03c6e3
to
a387a97
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable to me.
@frasercrmck Could you review it please? |
Sure, will do, thanks for this. We've done something similar downstream so I can hopefully verify against what we've done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks
Increase fp16 support to allow clspv to continue to be OpenCL compliant following the update of the OpenCL-CTS adding more testing on math functions and conversions with half. Math functions are implemented by upscaling to fp32 and using the fp32 implementation. It garantees the accuracy required for half-precision float-point by the CTS.
a387a97
to
449321d
Compare
Also, just leave that thought here: A next step might be to use |
@frasercrmck could you submit that PR? I cannot do it. |
Yeah, it would definitely need to be opt-in. Ideally we'd also implement the |
@rjodinchr I was about to merge and noticed your email is hidden. I just wanted to check with you whether you want to make it public, as per the discussion https://discourse.llvm.org/t/hidden-emails-on-github-should-we-do-something-about-it/74223/67. AFAICT there's still no official policy, but thought I'd check. |
I was not aware my email was private. It should be public now. Thanks |
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/3385 Here is the relevant piece of the build log for the reference:
|
I am able to reproduce it, working on it right now |
This PR should fix the build issue: #99481 |
This change seems to have caused test regression. This is Gentoo Linux amd64, tried LLVM 72d8c27 and 18.1.8. To reproduce, I've done:
The result:
LastTest.log: LastTest.log If I go back to 6838c7a, they all pass. |
Summary: Increase fp16 support to allow clspv to continue to be OpenCL compliant following the update of the OpenCL-CTS adding more testing on math functions and conversions with half. Math functions are implemented by upscaling to fp32 and using the fp32 implementation. It garantees the accuracy required for half-precision float-point by the CTS. Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: https://phabricator.intern.facebook.com/D60251019
Increase fp16 support to allow clspv to continue to be OpenCL compliant following the update of the OpenCL-CTS adding more testing on math functions and conversions with half.
Math functions are implemented by upscaling to fp32 and using the fp32 implementation. It garantees the accuracy required for half-precision float-point by the CTS.