-
Notifications
You must be signed in to change notification settings - Fork 195
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
Use slicing kernel to copy distances inside NN Descent #2380
Use slicing kernel to copy distances inside NN Descent #2380
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.
LGTM!
If we try to use the mdspan copy, we get errors compiling. I think it would be better to use the |
/merge |
This PR is an amalgamation of the diff of 3 PRs in RAFT: 1. rapidsai/raft#2345 2. rapidsai/raft#2380 3. rapidsai/raft#2403 This PR also addresses part 1 and 2 of #419, closes #391 and makes CAGRA use the compiled headers of NN Descent, which seemed to have been a pending TODO https://github.com/rapidsai/cuvs/blob/009bb8de03ce9708d4d797166187250f77a59a36/cpp/src/neighbors/detail/cagra/cagra_build.cuh#L36-L37 Also, batch tests are disabled in this PR due to issue rapidsai/raft#2450. PR #424 will attempt to re-enable them. Authors: - Divye Gala (https://github.com/divyegala) - Corey J. Nolet (https://github.com/cjnolet) Approvers: - Corey J. Nolet (https://github.com/cjnolet) URL: #421
Description
This make use of raft's slicing kernel within NN Descent build.
I found that my previous implementation was inefficient (merged in this PR).
Improvements
Time to call NN Descent
build()
withreturn_distances=True
before and after using this kernel