-
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
libraft
and pylibraft
API for CAGRA build and HNSW search
#2022
libraft
and pylibraft
API for CAGRA build and HNSW search
#2022
Conversation
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.
I think the general idea is getting there, but there's still a lot of api leakage and we have an opportunity here for a dedicated HNSW API (independent from hnswlib).
@cjnolet I addressed your suggestions and reworked the filenames/namespaces/structure to a pure
As a result of putting these two functions in the same header, they need to be compiled in the same By splitting
Another benefit of this split is that users will be able to build CPU-only RAFT and still be able to load hnsw indexes and search them. If this change is acceptable to you, then I will go ahead and make it. |
pylibraft
API for CAGRA build and HNSW searchlibraft
and pylibraft
API for CAGRA build and HNSW search
raft::host_matrix_view<const T, int64_t, row_major> dataset) \ | ||
->raft::neighbors::cagra::index<T, IdxT>; \ | ||
\ | ||
void build_device(raft::resources const& handle, \ |
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.
Why not just overload?
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.
Not sure, this change predates this PR
c6b896f
to
ae543e7
Compare
…nto cagra_hnswlib_pylibraft
…gra_hnswlib_pylibraft
/merge |
This PR conditionally includes `hnsw` sources, to prevent build errors like those seen in cuGraph after #2022 was merged. See also: rapidsai/cugraph#4121, rapidsai/cugraph#4122 Authors: - Divye Gala (https://github.com/divyegala) Approvers: - Corey J. Nolet (https://github.com/cjnolet) - Bradley Dice (https://github.com/bdice) - Robert Maynard (https://github.com/robertmaynard)
Closes #1772