Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
jnke2016 committed Jan 8, 2025
1 parent fdf09de commit ce22ea5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions cpp/src/community/leiden_impl.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -613,10 +613,12 @@ void relabel_cluster_ids(raft::handle_t const& handle,
handle.get_comms(), unique_cluster_ids.size(), handle.get_stream());

std::vector<vertex_t> cluster_ids_starts(cluster_ids_size_per_rank.size());
std::exclusive_scan(cluster_ids_size_per_rank.begin(), cluster_ids_size_per_rank.end(), cluster_ids_starts.begin(), size_t{0});
auto& comm = handle.get_comms();
local_cluster_id_first = cluster_ids_starts[comm.get_rank()];

std::exclusive_scan(cluster_ids_size_per_rank.begin(),
cluster_ids_size_per_rank.end(),
cluster_ids_starts.begin(),
size_t{0});
auto& comm = handle.get_comms();
local_cluster_id_first = cluster_ids_starts[comm.get_rank()];
}

rmm::device_uvector<vertex_t> numbering_indices(unique_cluster_ids.size(), handle.get_stream());
Expand Down Expand Up @@ -714,11 +716,10 @@ std::pair<size_t, weight_t> leiden(
clustering + local_num_verts,
unique_cluster_ids.begin());


detail::relabel_cluster_ids<vertex_t, multi_gpu>(
handle, unique_cluster_ids, clustering, local_num_verts);
handle, unique_cluster_ids, clustering, local_num_verts);

return std::make_pair(dendrogram->num_levels(), modularity);
}

} // namespace cugraph
} // namespace cugraph
2 changes: 1 addition & 1 deletion python/cugraph/cugraph/dask/community/leiden.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2022-2025, NVIDIA CORPORATION.
# Copyright (c) 2022-2024, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down

0 comments on commit ce22ea5

Please sign in to comment.