-
Notifications
You must be signed in to change notification settings - Fork 100
Bloom filter optimizations (4/5): Implement device bulk add #672
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
12 commits
Select commit
Hold shift + click to select a range
9e97c67
Eliminate IO from bloom_filter::add benchmark
sleeepyjack e2bb179
Don't read benchmark input data from gmem
sleeepyjack 15ecc93
Increase benchmark input to reduce noise in measurements
sleeepyjack 8e3caf9
Rename hash_value_type -> hash_result_type
sleeepyjack a4b91cb
Eliminate lmem access during salt lookup
sleeepyjack a444f56
Avoid error handling through __trap
sleeepyjack c784355
Add device bulk add
sleeepyjack 43e913e
Merge remote-tracking branch 'upstream' into bf-device-bulk-add
sleeepyjack 2271710
Merge remote-tracking branch 'upstream/dev' into bf-device-bulk-add
sleeepyjack 61db96b
Scale grid size to SM count to reduce tail effects
sleeepyjack 6fa0c1a
Use uint32_t size type in benchmarks to reduce register pressure
sleeepyjack 9d621db
Remove fallback kernel note
sleeepyjack 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
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.
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.
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.
The runtime difference brought by the 100% occupancy is not worth the change IMO.
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.
size_type = uint32_tshould be the default size type forbloom_filterIMO. The only thing preventing us from setting this default in the public API is (1) we usesize_teverywhere else in our library to denote sizes (I could start my usual rant about how it was a mistake for STL to chooseuint64_tas the default size type). (2) A user might run into the inconvenience of a narrowing conversion if their input value is a size_t.From an algorithmic standpoint, there is little to no need to use a wider type.
The benefit is that the kernel now achieves near-optimal occupancy, although it's not showing any significant end-to-end effect for our particular benchmark setup. However, lets say a user wants to use a hasher that needs more registers than
xxhash64, then, with the 4 more registers available, the compiler has more options to optimize the code before running out of resources.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 are using
size_tmainly to match STL and when possible, cudf or the upstream CCCL algorithms always use the signed integer likeint32_t/int64_tas size type since it doesn't have the overflow handling.