With intel MPI, output might stop by doing background execution like the following. mpirun ... ./a.out >& log.txt & In this case, it can be avoided by the following: mpirun ... ./a.out < /dev/null >& log.txt &