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: Frank (frank.t.winter_at_[hidden])
Date: 2012-02-01 11:56:05


Great, that works!! Many Thanks!

On Wed, Feb 1, 2012 at 4:17 PM, Paul Kapinos <kapinos_at_[hidden]> wrote:
> 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
>
> #!/bin/sh
> ARGS=$@
> if [[ $OMPI_COMM_WORLD_RANK == 0 ]]
> then
>  $ARGS
> else
>  $ARGS 1>/dev/null 2>/dev/null
> fi
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users