[mpich2-dev] hydra: redirecting stdout/err
Peter Johnson
pete at cs.dartmouth.edu
Fri Oct 29 13:58:45 CDT 2010
Hi Pavan, thanks for replying.
I'm actually looking for a way to separately redirect the output of each
process forked by mpiexec. I found the solution, though:
$ mpiexec sh -c '/path/to/binary >$PMI_RANK.out 2>$PMI_rank.err'
pete
On Fri, Oct 29, 2010 at 12:59:35AM -0500, Pavan Balaji wrote:
>
> Are you trying to send stdout to a separate file from stderr? You
> can do that using:
>
> % mpiexec -f hosts -n 4 ./foo > out 2> err
>
> -- Pavan
>
> On 10/28/2010 04:10 PM, Peter Johnson wrote:
> >Hi --
> >
> >I'd find it really useful to be able to separately redirect stdout and stderr
> >for each process spawned by Hydra. The wiki claims this is possible [1], and
> >it appears support therefor was been committed to a developer branch a couple
> >years ago [2], but the code doesn't seem to have made it to the 1.3 trunk.
> >Any ideas why it's missing? Google couldn't find for me any discussion on the
> >topic. Thanks.
> >
> >pete
> >
> >
> >[1] http://wiki.mcs.anl.gov/mpich2/index.php/Hydra_Output_Redirection
> >
> >[2] http://trac.mcs.anl.gov/projects/mpich2/changeset/4785
> >
>
> --
> Pavan Balaji
> http://www.mcs.anl.gov/~balaji
More information about the mpich2-dev
mailing list