Mihael,<br><br>I confirm that the "ppn" attribute now gets passed through to PBS, which can be used to force Torque-based clusters using the local:pbs provider to allocate the entire node. I tested with 1 and 2 nodes.<br>
<br>This is exactly what I was hoping for -- thank you very much.<br><br>* * *<br><br>One observational note: <br><br>At least on my Torque-scheduled cluster, using<br> -l nodes=1:ppn=8 <br>puts 8 copies of the hostname in the PBS_NODEFILE.<br>
<br>Since the Coasters multi-node PBS script does a simple cat/loop/ssh over PBS_NODEFILE, when using PPN > 1, ppn copies of the Perl script get run on each node. Thus, it's important that workersPerNode be set to 1.<br>
<br> <profile namespace="globus" key="workersPerNode">1</profile><br><br>This works fine for me. I'll defer to the broader discussion of nodes, workers per node, and the variables that make things work... regarding whether something like NODE= "cat $PBS_NODEFILE | sort | uniq" would be prefered to run just one script per node with worker count control returned to workersPerNode...<br>
<br> NODES=`cat $PBS_NODEFILE` [could be edited to enforce only one entry per physical node]<br>
...<br>
for NODE in $NODES; do<br>
...<br>
ssh $NODE /bin/bash -c ...<br>
<br>Matthew<br><br><br><div class="gmail_quote">On Sun, Nov 7, 2010 at 12:57 PM, Mihael Hategan <span dir="ltr"><<a href="mailto:hategan@mcs.anl.gov">hategan@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><br></div>
Attributes are not directly copied since there is no one-to-one mapping<br>
between jobs and coaster blocks. So theoretically some "merge" operation<br>
needs to exist.<br>
<br>
I added "ppn" as one of the attributes that is copied from the first<br>
job, so the scenario I mentioned should now work.<br>
<br>
This is cog r2927/trunk.<br>
<font color="#888888"><br>
Mihael<br>
</font><div><div></div><div class="h5"><br></div></div></blockquote></div><br>