[alcf-discuss] Labeling stdout, stderr with rank?

Todd Inglett tinglett at us.ibm.com
Tue Apr 13 10:58:10 CDT 2010


Sorry I missed that.   I'm wondering if qsub -env simply passes the 
environment var list on to mpirun -env?   Or does it also set environment 
vars that mpirun would see?  In this case it is mpirun that needs to see 
MPIRUN_LABEL=1, rather than the app.  I doubt if mpirun scrapes through 
the -env list it is passed on the cmline looking for mpirun env vars.

-todd

-----
Todd Inglett
Blue Gene Product Software Architecture
(507) 253-3617  tinglett at us.ibm.com


discuss-bounces at lists.alcf.anl.gov wrote on 04/13/2010 10:24:46 AM:

> [image removed] 
> 
> Re: [alcf-discuss] Labeling stdout, stderr with rank?
> 
> Tim Tautges 
> 
> to:
> 
> ALCF BG/P discussion list
> 
> 04/13/2010 10:24 AM
> 
> Sent by:
> 
> discuss-bounces at lists.alcf.anl.gov
> 
> Please respond to ALCF BG/P discussion list
> 
> See my original message; I've tried using that env variable, set 
> using the --env option to qsub, but it doesn't do anything.
> 
> - tim
> 
> Todd Inglett wrote:
> > 
> > The Blue Gene mpirun has a -label option that does exactly what you 
> > want.  Setting the env var MPIRUN_LABEL=1 (or to any value probably) 
> > should also do it.   See the App Development redbook.  There is a 
> > chapter on mpirun that lists all the options and env vars.  The 
> > options/vars should also work with mpiexec (which is really the same 
cmd).
> > 
> > -todd
> > 
> > -----
> > Todd Inglett
> > Blue Gene Product Software Architecture
> > (507) 253-3617  tinglett at us.ibm.com
> > 
> > 
> >  > >>
> >  > >> On Mon, Apr 12, 2010 at 6:01 PM, Tim 
Tautges<tautges at mcs.anl.gov>
> >  > >> wrote:
> >  > >>> Hi all,
> >  > >>>   Is there any way to label the .output, .error files with the 
rank
> >  > >> they came
> >  > >>> from, producing a separate file for each proc?  I've searched 
around
> >  > >> in the
> >  > >>> FAQ and elsewhere, but can't find anything.  I recall seeing
> >  > >> somewhere that
> >  > >>> you can use the qsub -O option, and some special character like 
%
> >  > >> that gets
> >  > >>> replaced by the rank.  I've tried %, but that doesn't work.
> >  > >>>
> >  > >>> Also, I'm using --env MPIRUN_LABEL=1 on my qsub command, but 
it's
> >  > >> not
> >  > >>> labeling output by rank like it's supposed to be.  Has anyone 
else
> >  > >> seen
> >  > >>> this?
> >  > >>>
> >  > >>> Thanks.
> >  > >>>
> >  > >>> - tim
> >  > >>>
> >  > >>> --
> >  > >>> 
================================================================
> >  > >>> "You will keep in perfect peace him whose mind is
> >  > >>>   steadfast, because he trusts in you."               Isaiah 
26:3
> >  > >>>
> >  > >>>              Tim Tautges            Argonne National Laboratory
> >  > >>>          (tautges at mcs.anl.gov)      (telecommuting from 
UW-Madison)
> >  > >>>          phone: (608) 263-8485      1500 Engineering Dr.
> >  > >>>            fax: (608) 263-4499      Madison, WI 53706
> >  > >>>
> >  > >>> _______________________________________________
> >  > >>> discuss mailing list
> >  > >>> discuss at lists.alcf.anl.gov
> >  > >>> https://lists.alcf.anl.gov/mailman/listinfo/discuss
> >  > >>>
> >  > >>
> >  > >>
> >  > >>
> >  > >> --
> >  > >> Jeff Hammond
> >  > >> Argonne Leadership Computing Facility
> >  > >> jhammond at mcs.anl.gov / (630) 252-5381
> >  > >> http://www.linkedin.com/in/jeffhammond
> >  > >> _______________________________________________
> >  > >> discuss mailing list
> >  > >> discuss at lists.alcf.anl.gov
> >  > >> https://lists.alcf.anl.gov/mailman/listinfo/discuss
> >  > > _______________________________________________
> >  > > discuss mailing list
> >  > > discuss at lists.alcf.anl.gov
> >  > > https://lists.alcf.anl.gov/mailman/listinfo/discuss
> >  > _______________________________________________
> >  > discuss mailing list
> >  > discuss at lists.alcf.anl.gov
> >  > https://lists.alcf.anl.gov/mailman/listinfo/discuss
> > 
> > 
> > 
------------------------------------------------------------------------
> > 
> > _______________________________________________
> > discuss mailing list
> > discuss at lists.alcf.anl.gov
> > https://lists.alcf.anl.gov/mailman/listinfo/discuss
> 
> -- 
> ================================================================
> "You will keep in perfect peace him whose mind is
>    steadfast, because he trusts in you."               Isaiah 26:3
> 
>               Tim Tautges            Argonne National Laboratory
>           (tautges at mcs.anl.gov)      (telecommuting from UW-Madison)
>           phone: (608) 263-8485      1500 Engineering Dr.
>             fax: (608) 263-4499      Madison, WI 53706
> 
> _______________________________________________
> discuss mailing list
> discuss at lists.alcf.anl.gov
> https://lists.alcf.anl.gov/mailman/listinfo/discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alcf.anl.gov/pipermail/discuss/attachments/20100413/b8976d0b/attachment-0001.htm>


More information about the discuss mailing list