Skip to content

Commit

Permalink
Another one
Browse files Browse the repository at this point in the history
  • Loading branch information
cjnolet committed Dec 8, 2023
1 parent e9b5e00 commit 1075df5
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 1075df5

Please sign in to comment.