Re: [OMPI users] stdout scrambled in file

2021-12-06 Thread Joachim Protze via users
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

Re: [OMPI users] stdout scrambled in file

2021-12-06 Thread Joachim Protze via users
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