[torqueusers] An issue when using pbs script to invoke different cpus from different nodes.

Ken Nielson knielson at adaptivecomputing.com
Tue Oct 18 08:19:17 MDT 2011



----- Original Message -----
> From: "Hongsheng Zhao" <zhaohscas at yahoo.com.cn>
> To: torqueusers at supercluster.org
> Sent: Monday, October 17, 2011 10:38:17 PM
> Subject: [torqueusers] An issue when using pbs script to invoke different cpus from different nodes.
> 
> Hi all,
> 
> I use qsub to submit the job to my queue.   Currently I've the
> following
> lines in the pbs script invoked by qsub:
> 
> --------
> #PBS -l nodes=2:ppn=8
> #PBS -l walltime=99:00:00
> #PBS -j oe
> #PBS -o out
> #PBS -e err
> #PBS -V
> #PBS -q default
> ----------
> 
> As you can see, in the above example, the job will use 16 cpus
> equally
> supplied by two nodes.   But now, I want to let pbs assign the cpus
> and
> nodes to this job according to the following requirements:
> 
> 1- There are 8 cpus used for this job.
> 2- All of the these cpus may belong to one node, or can come from
> different nodes, say,  supplied by two/three/four nodes and so on.
> 
> Could you please give me some hints on this issue.  Thanks in
> advance.
> 

If you do not care what nodes the processors come from you could use -l procs=8. 

The procs option tells the scheduler to assign 8 processors from where ever it can find them.

Ken


More information about the torqueusers mailing list