User Tools

Site Tools


batch

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
batch [2016/09/19 15:24]
pwolinsk
batch [2016/09/19 15:35]
pwolinsk
Line 42: Line 42:
 </​code>​ </​code>​
  
-The output in hostname.pbs.o283319 shows the output of the hostname command followed by the batch job scipt and accounting information from the scheduler. ​ It shows that the job was submitted with a 30 minute walltime into queue q30m32c, and 1 core on 1 node was requested.  ​+The output in hostname.pbs.o283319 shows the output of the hostname command followed by the batch job scipt and accounting information from the scheduler. ​ It shows that the job was submitted with a **30 minute walltime** into queue ''​**q30m32c**''​, and **1 core** on **1 node** was requested.  ​To specify different values for these parameters we you can pass flags to the **''​qsub''​** command: 
 + 
 +<​code>​ 
 +tres-l1:​pwolinsk:​$ qsub -q q06h32c -l walltime=1:​00 -l nodes=1:​ppn=32 hostname.pbs 
 +283320.torque 
 +</​code>​  
 + 
 +The command above submitted the same job to the ''​**q06h32c**''​ queue with a walltime of **1 minute** requesting all **32 cores** on **1 node**. ​ Alternatively instead of passing these flags to the ''​**qusb**''​ command any line in the pbs script which starts with ''#​PBS''​ will be passed in as a parameter to qsub.  Submitting the modified hostname.pbs script below with ''​**qsub**''​ without any flags on the command line will have the identical result 
 + 
 +<​code>​ 
 +tres-l1:​pwolinsk:​$ cat hostname.pbs 
 +#PBS -q q06h32c 
 +#PBS -l walltime=1:​00 
 +#PBS -l nodes=1:​ppn=32 
 + 
 +hostname 
 +tres-l1:​pwolinsk:​$ qsub hostname.pbs 
 +283323.torque 
 +tres-l1:​pwolinsk:​$  
 +</​code>​
batch.txt · Last modified: 2016/09/19 15:35 by pwolinsk