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: Lloyd Brown (lloyd_brown_at_[hidden])
Date: 2012-02-01 11:04:01

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

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:
> _______________________________________________
> users mailing list
> users_at_[hidden]