-
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
Consolidate pre-compiled specializations into single libraft
binary
#1333
Consolidate pre-compiled specializations into single libraft
binary
#1333
Conversation
Replace faiss bfKnn with code that leverages our pairwise_distance api and select_k api - by computing tiling over the inputs. This lets us remove faiss as a dependency
This reverts commit 8eaba84. Change didn't seem to build in CI
Also remove metrics processors - since is handled inside PW distance
This reverts commit fe728e9. This is causing incorrect results, just use the faiss select_k call instead
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.
Really minor questions. What a fantastic PR!
Due to the changes in rapidsai/raft#1333, the `libraft` build command in our `devel` containers need to be updated.
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 get the sense that I'm missing some context for the reorganization of the template specialization headers, probably because there were dependencies when using FAISS that have now changed without our usage of FAISS, or possibly because they're now shared between the former nn and dist lib files thanks to them being combined. Assuming all of that was done correctly, the build-related changes look correct to me. Some minor questions that aren't worth blocking over.
cpp/src/neighbors/specializations/detail/ball_cover_lowdim_pass_two_3d.cu
Show resolved
Hide resolved
/merge |
Pleae note, this should not be merged until rapidsai/raft#1333 is ready to be merged. Authors: - Corey J. Nolet (https://github.com/cjnolet) Approvers: - Chuck Hastings (https://github.com/ChuckHastings) - Sevag H (https://github.com/sevagh) URL: #3348
This is intended to be merged in 23.06 w/ this PR: rapidsai/raft#1333. Authors: - Corey J. Nolet (https://github.com/cjnolet) - Vyas Ramasubramani (https://github.com/vyasr) Approvers: - Dante Gama Dessavre (https://github.com/dantegd) - AJ Schmidt (https://github.com/ajschmidt8) URL: #5272
Now that we no longer need to rely on the FAISS dependency, this PR:
libraft-distance
andlibraft-nn
targets into a singlelibraft
artifactraft::compiled
target to link against the newlibraft.so
binary. Removesraft::distance
andraft::nn
targets.RAFT_DISTANCE_COMPILED
andRAFT_NN_COMPILED
pre-processor vars into a singleRAFT_COMPILED
(to match similar pattern implementated byspdlog
)specializations.cuh
headersThis change has been a long time coming and is intended to be a 23.04 feature. This is further going to require updates to several projects downstream. Here's a checklist to track that progress:
This PR depended on #1340 (removing FAISS from the build) and on #1202 (replacing the FAISS bfknn w/ our own), both of which have been merged.
Closes #824