[torqueusers] Torque and MPI jobs

Garrick Staples garrick at usc.edu
Sat Nov 11 07:01:21 MST 2006


On Sat, Nov 11, 2006 at 11:45:32AM -0200, Albino Aveleda alleged:
> Hi Ana,
> 
> If you need the file like this:
> n001:4
> n002:4
> ...
> 
> you can put this line in your job file:
> 
> cat ${PBS_NODEFILE} | uniq | sed 's/$/:4/' > /tmp/${PBS_JOBID}
> 
> The "uniq" will remove the equal line and "sed" will add to end line
> ":4". You have to use /tmp/${PBS_JOBID} with mpdboot
> and the last line I should add this line.
> 
> rm -f /tmp/${PBS_JOBID}

Here is a way to do it without cheating :)

cat ${PBS_NODEFILE} | uniq -c | awk '{print $2":"$1}'

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.supercluster.org/pipermail/torqueusers/attachments/20061111/1f271390/attachment.bin


More information about the torqueusers mailing list