libraft and pylibraft API for CAGRA build and HNSW search#2022
libraft and pylibraft API for CAGRA build and HNSW search#2022rapids-bot[bot] merged 42 commits intorapidsai:branch-24.02from
libraft and pylibraft API for CAGRA build and HNSW search#2022Conversation
cjnolet
left a comment
There was a problem hiding this comment.
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. |
| 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.
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)
…ai#2022) Closes rapidsai#1772 Authors: - Divye Gala (https://github.com/divyegala) - Corey J. Nolet (https://github.com/cjnolet) - Vyas Ramasubramani (https://github.com/vyasr) Approvers: - Micka (https://github.com/lowener) - Corey J. Nolet (https://github.com/cjnolet) URL: rapidsai#2022
This PR conditionally includes `hnsw` sources, to prevent build errors like those seen in cuGraph after rapidsai#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