[torqueusers] problem about running jobs on multiple nodes

Garrick Staples garrick at usc.edu
Mon Nov 12 10:17:16 MST 2007


On Mon, Nov 12, 2007 at 10:30:25AM +0800, Chien-Pin Chou alleged:
> Hello:
> 
> I have a problem about running jobs on multiple nodes (n>1)
> 
> when I use qsub -l nodes=2:ppn=2 for testing,
> but it just select 2 cpus in one node instead of choosing 2 cpus per node,
> which is total 4 cpus to run
> 
> my test script is :
> #=========================
> cd $PBS_O_WORKDIR
> NPROCS=`wc -l < $PBS_NODEFILE`
> echo $NPROCS
> cat $PBS_NODEFILE
> echo "...."
> /opt/openmpi/bin/mpirun -np $NPROCS -machinefile $PBS_NODEFILE hostname

You are running mpirun incorrectly.

http://www.open-mpi.org/faq/?category=tm

-------------- 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/20071112/ff755dbb/attachment-0001.bin


More information about the torqueusers mailing list