Skip to content

Commit

Permalink
Merge branch 'master' of github.com:fzenke/auryn
Browse files Browse the repository at this point in the history
  • Loading branch information
fzenke committed Nov 14, 2020
2 parents 9652515 + 537f293 commit 77f3061
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/auryn/SyncBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,15 +277,15 @@ void SyncBuffer::sync()
T1 = MPI_Wtime(); /* start time */
#endif
if ( send_buf.size() <= max_send_size ) {
ierr = MPI_Allgather(send_buf.data(), send_buf.size(), MPI_UNSIGNED,
recv_buf.data(), max_send_size, MPI_UNSIGNED, *mpicom);
ierr = MPI_Allgather(send_buf.data(), max_send_size, MPI_UNSIGNED,
recv_buf.data(), max_send_size, MPI_UNSIGNED, *mpicom);
} else {
// Create an overflow package
// std::cout << " overflow " << overflow_value << " " << send_buf.size() << std::endl;
NeuronID overflow_data [2];
NeuronID overflow_data [max_send_size];
overflow_data[0] = overflow_value;
overflow_data[1] = send_buf.size();
ierr = MPI_Allgather(&overflow_data, 2, MPI_UNSIGNED,
ierr = MPI_Allgather(&overflow_data, max_send_size, MPI_UNSIGNED,
recv_buf.data(), max_send_size, MPI_UNSIGNED, *mpicom);
}

Expand Down

0 comments on commit 77f3061

Please sign in to comment.