Skip to content
Snippets Groups Projects
Commit 9a1228d0 authored by Xingran Wang's avatar Xingran Wang
Browse files

reduce MPI_Allgather load imbalance

parent 4e88aa3d
No related branches found
No related tags found
No related merge requests found
......@@ -102,6 +102,7 @@ fwFileWriteAtAll(int fileID, const void *buffer, size_t len)
rankPio = commInqRankPio();
/* find position to write to */
of->collWriteSize[rankPio] = (int)len;
MPI_Barrier(commInqCommPio());
sct_start(timer_mpiAllGather);
xmpi(MPI_Allgather(MPI_IN_PLACE, 0, MPI_DATATYPE_NULL,
of->collWriteSize, 1, MPI_INT, commPio));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment