Skip to content

mpirun does not redirect stdout in openmpi-2.0.2 #3188

@jfikar

Description

@jfikar

I have problem redirecting stdout to a file using mpirun > and openmpi-2.0.2, while 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

On the other hand, this works also in 2.0.2
mpirun -n 4 ./test.sh | tee out

I'm on Gentoo Linux. Original bugreport.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions