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

[BUG] Fix a hang issue in MG triangle counts (when invoked with a small number of vertices to update triangle counts) #4517

Merged
merged 1 commit into from
Jul 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion cpp/src/community/triangle_count_impl.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,14 @@ void triangle_count(raft::handle_t const& handle,
}
}

if (vertices.has_value() && ((*vertices).size() == 0)) { return; }
if (vertices.has_value()) {
auto aggregate_vertex_count =
multi_gpu
? host_scalar_allreduce(
handle.get_comms(), (*vertices).size(), raft::comms::op_t::SUM, handle.get_stream())
: (*vertices).size();
if (aggregate_vertex_count == 0) { return; }
}

auto cur_graph_view = graph_view;

Expand Down
Loading