Open
Description
Background information
I would like to see progress information in my simulation, to ensure it is not stuck, or if it is, to handle appropriately.
However only on a newline the output is printed.
What version of Open MPI are you using? (e.g., v4.1.6, v5.0.1, git branch name and hash, etc.)
v5.0.5 (openmpi-5.0.5-2.fc41.x86_64)
Describe how Open MPI was installed (e.g., from a source/distribution tarball, from a git clone, from an operating system distribution package, etc.)
From fedora package
If you are building/installing from a git clone, please copy-n-paste the output from git submodule status
.
Please describe the system on which you are running
- Operating system/version: Fedora 41
- Computer hardware: x86_64-v4
- Network type: Ethernet / not used
I also tried v5.0.6 from fedora 42 but on a infiniband system with the same issue
Details of the problem
The output is always line buffered, even if explicitly requested to not do it.
Full buffering is similarly ignored. Printing to stderr instead of stdout does not help either.
Example program:
mpirun --stream-buffering=0 -np 2 sh -c "echo a ; printf b ; sleep 1; echo c"
Expected output:
a
ba
b<delay here>c
c
Actual output:
a
ba
<delay here>
bc
c
Previous openmpi version (4.1.x) did not introduce line buffering. Mpich is also not causing linebuffering.