Proof-of-concept: holy grail of multiversioning - #375
Draft
Shnatsel wants to merge 1 commit into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a proof-of-concept adaptation of https://github.com/Shnatsel/multiversion-research to fearless_simd v1.0 public API.
This is the holy grail of multiversioning because:
#[simd](probably should be named#[multiversion]), not even a top-leveldispatch!is necessary#[simd]function from another#[simd]functionI feel this is too magical for explicit SIMD, but may be the perfect match for autovectorization - it's just https://crates.io/crates/multiversion but better.
This does not require any changes to the
fearless_simdcrate and can be built on top of it after v1.0This PoC is entirely implemented by Astra; it is purely for exploring the design space and is not going to be merged as-is.