|Summary:||sys-cluster/openmpi-2.0.2 - mpirun does not redirect stdout|
|Product:||Gentoo Linux||Reporter:||Jan Fikar <j.fikar>|
|Component:||Current packages||Assignee:||Gentoo Cluster Team <cluster>|
|Package list:||Runtime testing required:||---|
Description Jan Fikar 2017-03-15 12:04:08 UTC
I have problem redirecting stdout to a file using mpirun and sys-cluster/openmpi-2.0.2. On the other hand, sys-cluster/openmpi-1.4.3 works as expected. *Simple test script test.sh: #!/bin/bash while true do sleep 5 echo -n "." done *Run test: mpirun -n 4 ./test.sh > out& tail -f out *Expected behaviour (1.4.3): out gets progressively filled with dots *Wrong behaviour (2.0.2): out is empty all the time; stderr: [warn] Epoll ADD(4) on fd 1 failed. Old events were 0; read change was 0 (none); write change was 1 (add); close change was 0 (none): Operation not permitted (If the program run by mpirun finishes, the stdout is finally all at once written to out. But it is not the case of the infinite test.sh. When killed, the out stays empty.)
Comment 1 Jan Fikar 2017-03-15 12:20:29 UTC
mpirun -n 4 ./test.sh | tee out seems to work also with sys-cluster/openmpi-2.0.2
Comment 2 Justin Bronder (RETIRED) 2017-03-16 12:50:13 UTC
This is probably something you'll have more luck with reporting upstream, https://github.com/open-mpi/ompi/issues. That's not to say I won't look into it, but it'll be a lower priority as I suspect this isn't due to Gentoo's packaging. If you do report upstream, please link back to it here.
Comment 3 Jan Fikar 2017-03-16 14:06:25 UTC
Reported here: https://github.com/open-mpi/ompi/issues/3188
Comment 4 Hadrien Lacour 2017-05-07 09:49:29 UTC
Exact same problem here. I was trying desperatly to redirect to /dev/null.
Comment 5 Mikle Kolyada 2020-06-21 10:55:20 UTC
reopen if still exists.