Skip to content

Commit

Permalink
leiden bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
seunghwak committed Dec 6, 2023
1 parent 85a2215 commit 2b0aad1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cpp/src/community/leiden_impl.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -568,17 +568,17 @@ void flatten_leiden_dendrogram(raft::handle_t const& handle,
leiden_partition_at_level<vertex_t, multi_gpu>(
handle, dendrogram, clustering, dendrogram.num_levels());

rmm::device_uvector<vertex_t> unique_cluster_ids(graph_view.number_of_vertices(),
rmm::device_uvector<vertex_t> unique_cluster_ids(graph_view.local_vertex_partition_range_size(),
handle.get_stream());
thrust::copy(handle.get_thrust_policy(),
clustering,
clustering + graph_view.number_of_vertices(),
clustering + graph_view.local_vertex_partition_range_size(),
unique_cluster_ids.begin());

remove_duplicates<vertex_t, multi_gpu>(handle, unique_cluster_ids);

relabel_cluster_ids<vertex_t, multi_gpu>(
handle, unique_cluster_ids, clustering, graph_view.number_of_vertices());
handle, unique_cluster_ids, clustering, graph_view.local_vertex_partition_range_size());
}

} // namespace detail
Expand Down

0 comments on commit 2b0aad1

Please sign in to comment.