-
Notifications
You must be signed in to change notification settings - Fork 197
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
[FEA] support of prefiltered brute force #2294
Merged
rapids-bot
merged 29 commits into
rapidsai:branch-24.06
from
rhdong:rhdong/prefiltered-bf
May 24, 2024
Merged
Changes from 14 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
d85fcf0
[FEA] support of prefiltered brute force based on cuSparseSDDMM
rhdong e3ef7bc
Merge remote-tracking branch 'origin/branch-24.06' into rhdong/prefil…
rhdong c7e4e7a
Improve the performance in classic scenarios by replace the cuSparseS…
rhdong ed07f60
Merge remote-tracking branch 'origin/branch-24.06' into rhdong/prefil…
rhdong 5c5aa9b
optimize and remove used.
rhdong b4971c2
Update cpp/include/raft/sparse/distance/detail/utils.cuh
achirkin b1c1bb8
Merge remote-tracking branch 'origin/branch-24.06' into rhdong/prefil…
rhdong 77ee4a6
Test cases adjustment
rhdong ea8420a
Merge remote-tracking branch 'origin/branch-24.06' into rhdong/prefil…
rhdong cc2b228
Merge SDDMM with customized kernel, optimize bitset count
rhdong 68731b0
Merge branch 'branch-24.06' into rhdong/prefiltered-bf
cjnolet 3a81f19
Merge remote-tracking branch 'origin/branch-24.06' into rhdong/prefil…
rhdong 2684afe
Optimize by dense bfknn
rhdong 57193a5
Merge branch 'rhdong/prefiltered-bf' of https://github.com/rhdong/raf…
rhdong 8e1217c
Optimize the test cases
rhdong 56f00cd
Merge branch 'rhdong/prefiltered-bf' of https://github.com/rhdong/raf…
rhdong 71bd24b
Merge remote-tracking branch 'origin/branch-24.06' into rhdong/prefil…
rhdong 96f4e83
Splitting(revert) the cuVS part
rhdong 4f1aa17
Fix CI issue
rhdong b718673
Merge remote-tracking branch 'origin/branch-24.06' into rhdong/prefil…
rhdong 9e24c5a
Move sparse distance API utils to cuvs and split the bitmap
rhdong 18cb672
Optimize by review comments
rhdong e393af9
Merge branch 'branch-24.06' into rhdong/prefiltered-bf
cjnolet 72c71f5
Merge remote-tracking branch 'origin/branch-24.06' into rhdong/prefil…
rhdong 97a0e74
Remove the sparse select_k instantiations
rhdong de49e0c
Merge branch 'rhdong/prefiltered-bf' of https://github.com/rhdong/raf…
rhdong 7d08443
Fix CI issue
rhdong 18ba927
Merge branch 'branch-24.06' into rhdong/prefiltered-bf
cjnolet f38642f
Fix docs issue.
rhdong 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 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 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 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
31 changes: 31 additions & 0 deletions
31
cpp/bench/prims/neighbors/knn/brute_force_filter_float_int64_t.cu
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright (c) 2024, NVIDIA CORPORATION. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#undef RAFT_EXPLICIT_INSTANTIATE_ONLY // Enable instantiation of search with filter | ||
#include "../knn.cuh" | ||
|
||
namespace raft::bench::spatial { | ||
KNN_REGISTER( | ||
float, int64_t, brute_force_filter_knn, kInputsBruteForceFilter, kNoCopyOnly, kScopeOnlySearch); | ||
|
||
KNN_REGISTER(float, | ||
int64_t, | ||
brute_force_filter_knn, | ||
kInputsBruteForceFilterExtra, | ||
kNoCopyOnly, | ||
kScopeOnlySearch); | ||
|
||
} // namespace raft::bench::spatial |
This file contains 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 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.
We're removing libraft.so in a future version, so I think we probably want to avoid adding these instantiations.