| 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> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | normal | CC: | cluster |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
mpirun -n 4 ./test.sh | tee out seems to work also with sys-cluster/openmpi-2.0.2 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. Reported here: https://github.com/open-mpi/ompi/issues/3188 Exact same problem here. I was trying desperatly to redirect to /dev/null. reopen if still exists. |
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.)