Great, that works!! Many Thanks!

On Wed, Feb 1, 2012 at 4:17 PM, Paul Kapinos <kapi...@rz.rwth-aachen.de> 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
> us...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/users

Reply via email to