-
Notifications
You must be signed in to change notification settings - Fork 831
[FP16] Add a feature flag for FP16. #6864
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
tlively
left a comment
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.
We should also update fuzzing.cpp to gate generation of the fp16 ops behind the feature flag.
| const char* MultiMemoryFeature = "multimemory"; | ||
| const char* TypedContinuationsFeature = "typed-continuations"; | ||
| const char* SharedEverythingFeature = "shared-everything"; | ||
| const char* FP16Feature = "fp16"; |
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.
Just to double check, does this match the feature name used by LLVM in the custom features section?
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.
It will after llvm/llvm-project#105434
Preference for in this PR or follow up? |
|
Ideally in this one. Thanks! |
Ensure the "fp16" feature is enabled for FP16 instructions.
|
Added some fuzzing. FWW, I noticed we're missing relaxed simd support and splat instructions for floats. |
kripken
left a comment
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 with fuzzing.
Side note, for incremental updates to a PR I would ask that we all try to use additional commits, rather than force-pushing a single commit. Incremental commits make incremental review easier, at least for me.
|
I try not to force push if I've rebased in upstream, but for small commits it seems the github "compare" link on the force pushes is as good as a separate commit. |
|
I guess the review UI is not on the compare link. I'll try to stick with separate commits. |
|
I wasn't aware of the "compare" button, thanks! Looks useful. But, yeah, it does seem to be missing the review UI, unfortunately, which commits do have. |
Ensure the "fp16" feature is enabled for FP16 instructions.