Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 612708 - sys-cluster/openmpi-2.0.2 - mpirun does not redirect stdout
Summary: sys-cluster/openmpi-2.0.2 - mpirun does not redirect stdout
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-15 12:04 UTC by Jan Fikar
Modified: 2020-06-21 10:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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) gentoo-dev 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 (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2020-06-21 10:55:20 UTC
reopen if still exists.