-
Notifications
You must be signed in to change notification settings - Fork 211
[REVIEW] Improve 1-NN performance with split GEMM/reduction kernels on Blackwell #1768
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
61 commits
Select commit
Hold shift + click to select a range
8b98037
Forwarding all the previous work
vinaydes 316df9f
Removing and updating comments
vinaydes 4276494
RNG does not support int8_t, therefore commenting the test case for now
vinaydes c36f25e
Adding cutlass dependency to the benchmarking code
vinaydes f5ed1c7
Removing unused API declaration
vinaydes 268a505
Fixing Blackwell's SM version
vinaydes 381653f
Removing debugging and profiling code
vinaydes 7a49bec
Splitting the GEMM and reduction calls
vinaydes f5a8a79
Updating the name of distance GEMM cal
vinaydes 5a4a795
Changing the file name to reflect the benchmark better
vinaydes 1b372fe
Updating the name of benchmarking file
vinaydes 9e9e912
Updating test and bench file names
vinaydes 8aff3dd
Changed to manual time to capture correct GPU time
vinaydes 0384953
Adding default benchmarking cases and refactoring
vinaydes 6aa6b4a
Refactoring
vinaydes e65cd9a
Improving comments and refactoring
vinaydes d653bce
Removing unused headers
vinaydes f0108df
Merge branch 'main' into distance-nn
vinaydes 124cce6
Merge branch 'main' into distance-nn
vinaydes 381ac80
Correcting the constant type for int8_t gemm
vinaydes 2874b41
Enable int8_t test cases
vinaydes 84dbca1
Removing redundant constant declarations
vinaydes 36f346b
Replacing the stream sync call
vinaydes 6754290
Formatting
vinaydes 2aebd6c
Merge branch 'main' into distance-nn
vinaydes aefe91b
Apply suggestions from code review
vinaydes 5c31c28
Update cpp/bench/prims/src/distance/distance_nn.cu
vinaydes 2c2196a
Always assume GPU build
vinaydes 7e8afc0
Add test cases where m != n
vinaydes 1bd407f
Replacing with matrix::fill
vinaydes bef16b5
Using RAFT host device function macro
vinaydes e6f861b
Varying some more sizes
vinaydes 4cdf49e
Fixing the dimension of vectors
vinaydes d957b33
Merge branch 'main' into distance-nn
vinaydes ec3487d
Merge branch 'main' into distance-nn
vinaydes c5b51e0
Merge branch 'main' into distance-nn
aamijar f522203
Merge branch 'main' into distance-nn
cjnolet afa39a2
Merge branch 'main' into distance-nn
vinaydes 31d1def
Deleting warm-up as warm-up runs can be done using google benchmark cli
vinaydes 0790c56
CUB block reduce header needs to be exclusively included now
vinaydes 1324a1d
Adding docstring to explain the reduction function
vinaydes 5e355fa
Explicity setting stream for cublas gemm
vinaydes 3313834
Removing the prims benchmarks for now
vinaydes 3a4dfaf
Fixing a spelling error
vinaydes 7a2e1a2
Merge branch 'main' into distance-nn
vinaydes 911686a
Merge branch 'main' into distance-nn
vinaydes 15b242d
Removing unintentional whitespace change
vinaydes 43e7e93
Adding a grid-strided loop to cover full array length
vinaydes d622448
Fixing the grid-strided loop
vinaydes 39b0259
Adding a seed_offset to generate different x an y vectors
vinaydes 0e3cb11
Fixing the issue with cosine norm computation
vinaydes 8472fe1
Syncing before comparing
vinaydes 6f35fa7
Adding tests for L2SqrtExpanded
vinaydes c80051e
Update batch size calculation
vinaydes 73e19da
Adding error check for CUDA kernel launch failures
vinaydes c4cfc69
Making sure that all dimensions are non-zero before starting the dist…
vinaydes b67dda6
Minor and formatting changes
vinaydes e8d6bd1
Adding guards for zero-norm vectors
vinaydes 63e0796
Merge branch 'main' into distance-nn
tfeher 89a1640
Merge branch 'main' into distance-nn
vinaydes 4104e5f
Merge remote-tracking branch 'work-github/distance-nn' into distance-nn
vinaydes 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
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.
Uh oh!
There was an error while loading. Please reload this page.