-
Notifications
You must be signed in to change notification settings - Fork 107
Enable build_sorted_mst
with data on host memory
#997
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
Open
jinsolp
wants to merge
7
commits into
rapidsai:branch-25.08
Choose a base branch
from
jinsolp:connect-knn-host-data
base: branch-25.08
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 tasks
divyegala
reviewed
Jun 10, 2025
cpp/src/cluster/detail/mst.cuh
Outdated
Comment on lines
201
to
205
cuvs::distance::pairwise_distance(handle, | ||
raft::make_const_mdspan(data_u.view()), | ||
raft::make_const_mdspan(data_v.view()), | ||
pairwise_dist.view(), | ||
metric); |
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.
Based on your answer to my previous question, if using omp, I would also create new handles with streams picked from a pool for this call to saturate the GPU with concurrency (pairwise distance of 1 row at a time on the GPU will likely be slower than doing this on the CPU)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Connecting knn graph requires the entire data to be on device memory to use
cuvs::sparse::neighbors::cross_component_nn
.This PR enables connecting knn graph with data on host by randomly choosing edges between components. Thus, it ends up selecting
n_components-1
number of edges and adds that to the msf to make an mst.