Skip to content
Open
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
4 changes: 4 additions & 0 deletions dccrg_mpi_support.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ class All_Gather
total_send_count += (uint64_t) send_count;
}

if(total_send_count == 0) {
//Early abort if there is nothing to communicate.
return;
}
std::vector<uint64_t> temp_result(total_send_count, std::numeric_limits<uint64_t>::max());

// give a sane address to gatherv also when nothing to send
Expand Down