User Tools

Site Tools


tutorial:torque

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
Next revision Both sides next revision
tutorial:torque [2016/11/28 10:15]
sertalpbilal [Queues]
tutorial:torque [2017/02/09 15:23]
sertalpbilal
Line 64: Line 64:
 Now, we will run the code but we are setting the job parameters using ''-'' character (e.g. ''-N JobName'') Now, we will run the code but we are setting the job parameters using ''-'' character (e.g. ''-N JobName'')
  
-===== Important Options ===== +===== Options =====
  
   * ''-q <queue>'' set the queue. Often you will use the standard queue, so no need to set this up.   * ''-q <queue>'' set the queue. Often you will use the standard queue, so no need to set this up.
Line 91: Line 90:
 To show the jobs use ''qstat'' or ''qstat -a'' You can also see more details using To show the jobs use ''qstat'' or ''qstat -a'' You can also see more details using
 <code>qstat -f</code> <code>qstat -f</code>
-To show jobs of some user use ''qstat -u "mat614"'' To remove job do ''qdel JOB_ID''+To show jobs of some user use ''qstat -u "mat614"'' To remove job use 
 +<code shell> 
 +qdel JOB_ID 
 +</code>
  
 ==== Queues ==== ==== Queues ====
Line 122: Line 124:
 | very long  | 240:00:00 | | very long  | 240:00:00 |
  
-==== Examples ====+===== Examples ====
 + 
 +==== Submitting a Small or Large Memory Job ==== 
 + 
 +You can use the option ''-l mem=size,vmem=size'' to limit memory usage of your job. 
 + 
 +<code bash limited.sh> 
 +qsub -l mem=4gb,vmem=4gb test.pbs 
 +</code>
  
-=== Submitting Large Memory Job ===+Sometimes your job needs more memory. You can choose a larger memory size with the same option:
  
-Sometimes your job needs more memory. This can be achieved by ''-l mem=size'' example +<code bash large.pbs>qsub  -l mem=20gb  test.pbs</code>
-<code>qsub  -l mem=20gb  test.pbs</code>+
  
-=== Running MATLAB -- Example ===+==== Running MATLAB ====
  
 You just have to create a submission job which looks like this You just have to create a submission job which looks like this
Line 142: Line 151:
 </code> </code>
  
-=== Interactive Jobs ===+<note tip>Use **-singleCompThread** [[https://www.mathworks.com/help/matlab/ref/maxnumcompthreads.html|option]] for Matlab to use a single thread. A similar option may be needed for the program/solver you're using.</note>
  
 +==== Interactive Jobs ====
  
 If you do not care where you run your job just use ''-I'' and do not specify any script to run. If you do not care where you run your job just use ''-I'' and do not specify any script to run.
Line 152: Line 162:
 and you will be running interactive session on polyp15. and you will be running interactive session on polyp15.
  
-=== Using GPU's ===+==== Using GPU'====
  
  
Line 160: Line 170:
 However, first you have to have a permission to use GPU (given by Prof. Takac) -- this is just formality to allow to certain users to use video driver on polyp30 However, first you have to have a permission to use GPU (given by Prof. Takac) -- this is just formality to allow to certain users to use video driver on polyp30
  
-=== Running MPI and Parallel Jobs ===+==== Running MPI and Parallel Jobs ====
  
 <code bash mpi.pbs> <code bash mpi.pbs>
tutorial/torque.txt · Last modified: 2024/02/28 13:12 by mjm519