Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] Mpirun: How to print STDOUT of just one process?
From: Paul Kapinos (kapinos_at_[hidden])
Date: 2012-02-01 11:17:50

Try out the attached wrapper:
$ mpiexec -np 2 masterstdout <prg>

> mpirun -n 2 <prg>

> Is there a way to have mpirun just merger STDOUT of one process to its
> STDOUT stream?

Dipl.-Inform. Paul Kapinos   -   High Performance Computing,
RWTH Aachen University, Center for Computing and Communication
Seffenter Weg 23,  D 52074  Aachen (Germany)
Tel: +49 241/80-24915

if [[ $OMPI_COMM_WORLD_RANK == 0 ]]
  $ARGS 1>/dev/null 2>/dev/null