-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Add prefetching to x64 bulk vector implementations #142387
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
96eb6fb
Fill in various bulk operations to use prefetching
thecoop b9d6171
Reorder aarch ops to the right order
thecoop 4a1e050
sqr7u avx512 bulk implementation
thecoop 25b3325
BBQ implementations
thecoop 9255527
Merge remote-tracking branch 'upstream/main' into vector-bulk-op-pref…
thecoop b6574c4
Merge branch 'main' into vector-bulk-op-prefetch
thecoop 878869d
Tweak BBW prefetching
thecoop 92eef10
Tweak prefetching
thecoop 6b14e3a
Just remove AVX512 BBQ implementations
thecoop aeb7117
Merge branch 'main' into vector-bulk-op-prefetch
thecoop 36fde1b
Add a bit more prefetching to d2q4
thecoop d91c27b
Merge remote-tracking branch 'upstream/main' into vector-bulk-op-pref…
ldematte 8c483ac
Publish vec binaries + update version
ldematte File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
This bulk pattern seems to be template-able, but it needs:
sqri7u_inner)vec_sqri7u)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.
ALternatively, we could use classes, but then I'm not sure what that does to inline-ability and (potentially virtual) method calls
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 tried to stay avoid from classes, and especially virtual methods, up to now, and focus on what can be done with templating instead.
A template would probably be not easy on the eyes; as you point out, it would require 3 template functions.
And it would be good to look at the cost of virtual calls for bulk; the overhead for single distance/score made it not feasible, but maybe with bulk operations we are OK?
Let's split and try both; I can give a template-based version a go, you could try a class-based one.