<p dir="ltr">Thanks. Does it produce a one line/entry list?</p>
<p dir="ltr">I found a variant that might also work (need to test)</p>
<p dir="ltr"># Generate Machinefile for mpich such that hosts are in the same order as if run via srun </p>
<p dir="ltr">srun -l /bin/hostname | sort -n | awk '{print $2}' > MACHINEFILE</p>
<p dir="ltr"># Run using generated Machine file:</p>
<p dir="ltr">mpirun -np $SLURM_NTASKS -machinefile MACHINEFILE mpi-app</p>
<p dir="ltr">If this works, then</p>
<p dir="ltr">srun -l /bin/hostname | sort -n | awk '{print $2}' > MACHINEFILE<br>
set PBS_NODEFILE=MACHINEFILE<br>
x Machines2W</p>
<p dir="ltr">"should" be general.</p>
<p dir="ltr">N.B., standard caveats, i.e. where is hostname, does it always have the same format, is sort needed, etc...</p>
<p dir="ltr">---<br>
Professor Laurence Marks<br>
Department of Materials Science and Engineering<br>
Northwestern University<br>
<a href="http://www.numis.northwestern.edu">http://www.numis.northwestern.edu</a><br>
Corrosion in 4D <a href="http://MURI4D.numis.northwestern.edu">http://MURI4D.numis.northwestern.edu</a><br>
Co-Editor, Acta Cryst A<br>
"Research is to see what everybody else has seen, and to think what nobody else has thought"<br>
Albert Szent-Gyorgi</p>
<div class="gmail_quote">On Nov 11, 2015 00:36, "Peter Blaha" <<a href="mailto:pblaha@theochem.tuwien.ac.at">pblaha@theochem.tuwien.ac.at</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The commands<br>
srun hostname -s  >slurm.hosts<br>
set proclist=`cat slurm.hosts|sort`<br>
<br>
within a slurm-job give you a list of your hosts.<br>
<br>
Am 11.11.2015 um 01:04 schrieb Laurence Marks:<br>
> Does anyone know the "machines" format for slurm? I want to expand<br>
> Machines2W so it can use it (& I can use a slurm based system).<br>
><br>
><br>
><br>
> _______________________________________________<br>
> Wien mailing list<br>
> <a href="mailto:Wien@zeus.theochem.tuwien.ac.at">Wien@zeus.theochem.tuwien.ac.at</a><br>
> <a href="http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien" rel="noreferrer" target="_blank">http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien</a><br>
> SEARCH the MAILING-LIST at:  <a href="http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html" rel="noreferrer" target="_blank">http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html</a><br>
><br>
<br>
--<br>
--------------------------------------------------------------------------<br>
Peter BLAHA, Inst.f. Materials Chemistry, TU Vienna, A-1060 Vienna<br>
Phone: +43-1-58801-165300             FAX: +43-1-58801-165982<br>
Email: <a href="mailto:blaha@theochem.tuwien.ac.at">blaha@theochem.tuwien.ac.at</a>    WIEN2k: <a href="http://www.wien2k.at" rel="noreferrer" target="_blank">http://www.wien2k.at</a><br>
WWW:   <a href="http://www.imc.tuwien.ac.at/staff/tc_group_e.php" rel="noreferrer" target="_blank">http://www.imc.tuwien.ac.at/staff/tc_group_e.php</a><br>
--------------------------------------------------------------------------<br>
_______________________________________________<br>
Wien mailing list<br>
<a href="mailto:Wien@zeus.theochem.tuwien.ac.at">Wien@zeus.theochem.tuwien.ac.at</a><br>
<a href="http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien" rel="noreferrer" target="_blank">http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien</a><br>
SEARCH the MAILING-LIST at:  <a href="http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html" rel="noreferrer" target="_blank">http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html</a><br>
</blockquote></div>