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.
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?
> users mailing list