Hi Mark,
"[...] MPI makes neither requirements nor recommendations for the output
[...]" (MPI4.0, ยง2.9.1)
From my experience, an application can avoid such scrambling (still no
guarantee), if the output of lines is written atomically. C++ streams
are worst for concurrent output, as every str
I would assume, that the buffering mode is compiler/runtime specific. At
least for Intel compiler, the default seems to be/have been unbuffered
for stdout, but there is a flag for buffered output:
https://community.intel.com/t5/Intel-Fortran-Compiler/Enabling-buffered-I-O-to-stdout-with-Intel-i