-
Notifications
You must be signed in to change notification settings - Fork 204
CPU: feature flag u8 and f32 pipelines #1294
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
CPU: feature flag u8 and f32 pipelines #1294
Conversation
|
I’m not sure locking enum variants behind a feature flag is a good idea because it might break existing matching code downstream if someone activates one of the features. |
Yeah, good point. We could mark the enum as non-exhaustive. But perhaps it's better to just keep both variants but ignore the value passed if only one pipeline is enabled? The enum values are "phrased" to be hint-like anyway... |
|
Yes I think ignoring is better. |
|
@DJMcNab Any ideas on how to setup CI for this:
Perhaps we need to exclude |
|
I think it should be able to be treated in the same way that we treat |
340e473 to
11d20b0
Compare
|
I have fixed CI by enabling both pipelines everywhere we're not explicitly checking that it compiles with just one of them enabled, and I've added a |
|
It seems like there are still failures |
9f4e158 to
a38b134
Compare
Ah, I think the |
|
I'm wondering whether it make sense to only enable the u8 pipeline by default. IMO, that's pretty much always the one you should use. But not sure. |
Signed-off-by: Nico Burns <[email protected]>
a38b134 to
799a5fc
Compare
Signed-off-by: Nico Burns <[email protected]>
I would agree with this. I've made the |
LaurenzV
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.
A bit annoying to make this work with CI, but it is what it is. 😄
Signed-off-by: Nico Burns <[email protected]>
There is an |
67625cd to
8608763
Compare
Signed-off-by: Nico Burns <[email protected]>
8608763 to
a7e172e
Compare
- Follow-up to linebender#1294
- Follow-up to #1294
Adds feature flags to
vello_cpusu8andf32pipelines so that you can save on binary size if you're only planning on using one of them. Disabling thef32pipeline knocks ~60kb off the binary size for me ~250kb -> ~190kb.