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: Gustavo Correa (gus_at_[hidden])
Date: 2012-02-01 12:48:24


Hi Frank, Lloyd

If all you want is to sort out from which process the output is coming from,
you can use the "-tag-output" switch to the [OpenMPI] mpirun.
Check it out with 'man mpirun'.

I hope this helps,
Gus Correa

On Feb 1, 2012, at 11:04 AM, Lloyd Brown wrote:

> I don't know about using mpirun to do it, but you can actually call
> mpirun on a script, and have that script individually call a single
> instance of your program. Then that script could use shell redirection
> to redirect the output of the program's instance to a separate file.
>
> I've used this technique to play with ulimit sort of things in the
> script before. I'm not entirely sure what variables are exposed to you
> in the script, such that you could come up with a unique filename to
> output to, though.
>
> Lloyd Brown
> Systems Administrator
> Fulton Supercomputing Lab
> Brigham Young University
> http://marylou.byu.edu
>
> On 02/01/2012 08:59 AM, Frank wrote:
>> When running
>>
>> mpirun -n 2 <prg>
>>
>> the STDOUT streams of both processes are combined and are displayed by
>> the shell. In such an interleaved format its hard to tell what line
>> comes from which node.
>>
>> Is there a way to have mpirun just merger STDOUT of one process to its
>> STDOUT stream?
>>
>> Best,
>> Frank
>>
>> Cross-reference:
>> http://stackoverflow.com/questions/9098781/mpirun-how-to-print-stdout-of-just-one-process
>> _______________________________________________
>> users mailing list
>> users_at_[hidden]
>> http://www.open-mpi.org/mailman/listinfo.cgi/users
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users