Skip to content
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

Remove selection_faiss #2027

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

benfred
Copy link
Member

@benfred benfred commented Nov 29, 2023

Remove the selection_faiss instantiations. Since #1985, we haven't been using the faiss select_k code and these aren't necessary anymore. This should lead to a 70MB improvement in libraft.so binary size.

This also removes the raft::spatial::select_k code in favour of matrix:: select_k - the spatial version was marked deprecated, and didn't switch between the best selection algorithms for the input size.

Remove the selection_faiss instantiations. Since rapidsai#1985, we haven't
been using the faiss select_k code and these aren't necessary anymore.
This should lead to a 70MB improvement in libraft.so binary size.

This also removes the raft::spatial::select_k code in favour of matrix::
select_k - the spatial version was marked deprecated, and didn't
switch between the best selection algorithms for the input size.
@benfred benfred requested review from a team as code owners November 29, 2023 21:54
@benfred benfred added improvement Improvement / enhancement to an existing function breaking Breaking change and removed cpp CMake labels Nov 29, 2023
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 @benfred LGTM! The size of libraft.so goes from 486 MB to 425 MB! (cuda11 x86_64 build).

@cjnolet
Copy link
Member

cjnolet commented Nov 30, 2023

/merge

@rapids-bot rapids-bot bot merged commit 4ba0139 into rapidsai:branch-24.02 Nov 30, 2023
61 checks passed
@benfred benfred deleted the remove_selection_faiss branch December 4, 2023 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Breaking change improvement Improvement / enhancement to an existing function
Projects
Development

Successfully merging this pull request may close these issues.

3 participants