Skip to content
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

Removing code that explicitly compares equality of rmm memory resources #2047

Merged
merged 14 commits into from
Dec 9, 2023
Prev Previous commit
Next Next commit
Another one
  • Loading branch information
cjnolet committed Dec 8, 2023
commit 1075df5539daa24bd824eef9db03c645307e380c
6 changes: 3 additions & 3 deletions cpp/include/raft/cluster/detail/kmeans_balanced.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ void build_hierarchical(const raft::resources& handle,
mesocluster_labels_buf.data(),
mesocluster_sizes_buf.data(),
mapping_op,
&managed_memory,
device_memory,
dataset_norm);
}

Expand Down Expand Up @@ -1059,11 +1059,11 @@ void build_hierarchical(const raft::resources& handle,
fine_clusters_nums_max,
cluster_centers,
mapping_op,
device_memory,
&managed_memory,
device_memory);
RAFT_EXPECTS(n_clusters_done == n_clusters, "Didn't process all clusters.");

rmm::device_uvector<CounterT> cluster_sizes(n_clusters, stream, &managed_memory);
rmm::device_uvector<CounterT> cluster_sizes(n_clusters, stream, device_memory);
rmm::device_uvector<LabelT> labels(n_rows, stream, device_memory);

// Fine-tuning k-means for all clusters
Expand Down
Loading