Skip to content

Commit b8e64ec

Browse files
authored
Document mpistream rank-zero routing (#679)
## Summary - document that mpistream write messages intentionally route through rank 0 ## Testing - python3 ./scons.py -j16 mode=debug
1 parent cf532f8 commit b8e64ec

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

source/src/utility/io/mpistream.ipp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ basic_mpi_streambuf< Elem, Tr, ElemA, ByteT, ByteAT >::print_header( std::string
7979
buf[ 1 ] = header.size();
8080
buf[ 2 ] = MPI_STREAM_SEND;
8181
buf[ 3 ] = channel_id_;
82+
// MpiFileBuffer routes file writes through rank 0, regardless of the opening rank.
8283
int master_rank = 0;
8384

8485
// std::cerr << "sending from client " << my_rank_ << std::endl;
@@ -180,6 +181,7 @@ buffer_
180181
buf[ 1 ] = avail_out;
181182
buf[ 2 ] = MPI_STREAM_SEND;
182183
buf[ 3 ] = channel_id_;
184+
// MpiFileBuffer routes file writes through rank 0, regardless of the opening rank.
183185
int master_rank = 0;
184186

185187
// std::cerr << "sending from client " << my_rank_ << std::endl;

0 commit comments

Comments
 (0)