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
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Cluster Team
Depends on:
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: ---


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

while true
    sleep 5
    echo -n "."

*Run test:

mpirun -n 4 ./ > 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 When killed, the out stays empty.)
Comment 1 Jan Fikar 2017-03-15 12:20:29 UTC
mpirun -n 4 ./ | 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,

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:
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 archtester Gentoo Infrastructure gentoo-dev Security 2020-06-21 10:55:20 UTC
reopen if still exists.