[mpich2-dev] hydra: redirecting stdout/err

Peter Johnson pete at cs.dartmouth.edu
Fri Oct 29 17:30:53 CDT 2010


Why not just pull in this change?

    http://trac.mcs.anl.gov/projects/mpich2/changeset/4785

pete

On Fri, Oct 29, 2010 at 04:34:50PM -0500, Pavan Balaji wrote:
> 
> Ah, I see. Unfortunately, there's no easy way to do this right now.
> What you did below should work, but it might be better to add such a
> feature in Hydra itself.
> 
> Can you create a ticket for this?
> https://trac.mcs.anl.gov/projects/mpich2/newticket
> 
>  -- Pavan
> 
> On 10/29/2010 01:58 PM, Peter Johnson wrote:
> >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
> 
> -- 
> Pavan Balaji
> http://www.mcs.anl.gov/~balaji


More information about the mpich2-dev mailing list