-
Notifications
You must be signed in to change notification settings - Fork 201
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
base: main
Are you sure you want to change the base?
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 |
ffbadcf to
9f4e158
Compare
Signed-off-by: Nico Burns <[email protected]>
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. |
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.