10000 Brute force knn tile size heuristic by mfoerste4 · Pull Request #316 · rapidsai/cuvs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Brute force knn tile size heuristic #316

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 7 commits into from
Sep 11, 2024

Conversation

mfoerste4
Copy link
Contributor

This PR modifies the tile size heuristic for brute force knn as mentioned in (#277).

It also removes some unneeded cuda calls to save a couple of microseconds which might be relevant when running smaller batches.

CC @tfeher

@mfoerste4 mfoerste4 requested a review from a team as a code owner September 6, 2024 09:51
@github-actions github-actions bot added the cpp label Sep 6, 2024
Copy link
Contributor
@tfeher tfeher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Malte for the PR! Could you address the two smaller issues below?

@cjnolet cjnolet added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels Sep 6, 2024
Copy link
Member
@benfred benfred left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for fixing this @mfoerste4 !

@@ -356,27 +357,26 @@ void brute_force_knn_impl(

ASSERT(input.size() == sizes.size(), "input and sizes vectors should be the same size");

std::vector<IdxType>* id_ranges;
if (translations == nullptr) {
std::vector<IdxType> id_ranges;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

longer term - we can probably remove the code that handles translations entirely. Its not being used in the public api anymore, and is just left over from the RAFT version. (doesn't need to change in this PR though)

@mfoerste4 mfoerste4 requested review from tfeher and benfred September 9, 2024 20:51
@mfoerste4
Copy link
Contributor Author

@tfeher @benfred , thanks for the review. I have addressed your suggestions.

Copy link
Member
@benfred benfred left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm - thanks @mfoerste4 !

Copy link
Contributor
@tfeher tfeher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Malte for the updates, LGTM!

@tfeher
Copy link
Contributor
tfeher commented Sep 11, 2024

/merge

@rapids-bot rapids-bot bot merged commit 68480c9 into rapidsai:branch-24.10 Sep 11, 2024
54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cpp improvement Improves an existing functionality non-breaking Introduces a non-breaking change
Development

Successfully merging this pull request may close these issues.

4 participants
0