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