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/08 15:36]
takac
tutorial:torque [2016/12/08 14:05]
sertalpbilal Emphasized qdel command
Line 33: Line 33:
  
 ===== Submitting Jobs ===== ===== Submitting Jobs =====
- 
-<note tip>Check [[#prerequisite|prerequisite]] before using Torque.</note> 
  
 Jobs can be submitted either using a submission file or directly from command line. First we explain how it is done and then we will discuss the options. Jobs can be submitted either using a submission file or directly from command line. First we explain how it is done and then we will discuss the options.
Line 93: Line 91:
 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 ====
  
-We have few queues ''qstat -q''+We have few queues ''qstat -Q''
 <code> <code>
 Queue            Memory CPU Time Walltime Node  Run Que Lm  State Queue            Memory CPU Time Walltime Node  Run Que Lm  State
 ---------------- ------ -------- -------- ----  --- --- --  ----- ---------------- ------ -------- -------- ----  --- --- --  -----
 +gpu                --      --       --      --    0   0 --   E R
 medium             --      --       --      --    0   0 --   E R medium             --      --       --      --    0   0 --   E R
 short              --      --       --      --    0   0 --   E R short              --      --       --      --    0   0 --   E R
 long               --      --       --      --    0   0 --   E R long               --      --       --      --    0   0 --   E R
 batch              --      --       --      --    0   0 --   E R batch              --      --       --      --    0   0 --   E R
-verylong           --      --       --      --    0   --   E R +verylong           --      --       --      --    0   50   E R 
-                                               ----- ----- +AMPL               --      --       --      --      0 10   E R 
-                                                       0+MOSEK              --      --       --      --      50   E R 
 </code> </code>
 +
 +If you want to use AMPL or MOSEK, you have to use queue: AMPL or MOSEK, because we have limited licenses for them.
 +
 +
  
 You can see limits using this command ''qstat -f -Q'' You can see limits using this command ''qstat -f -Q''
Line 218: Line 225:
 c2 c2
 </code> </code>
- 
-===== Advanced ===== 
- 
- 
-The qsub command will pass certain environment variables in the Variable_List attribute of the job. These variables will be available to the job. The value for the following variables will be taken from the environment of the qsub command: 
-  * **HOME** (the path to your home directory) 
-  * **LANG** (which language you are using) 
-  * **LOGNAME** (the name that you logged in with) 
-  * **PATH** (standard path to excecutables) 
-  * **MAIL** (location of the users mail file) 
-  * **SHELL** (command shell, i.e bash,sh,zsh,csh, ect.) 
-  * **TZ** (time zone) 
-These values will be assigned to a new name which is the current name prefixed with the string "PBS_O_". For example, the job will have access to an environment variable named PBS_O_HOME which have the value of the variable HOME in the qsub command environment. In addition to these standard environment variables, there are additional environment variables available to the job. 
-  * **PBS_O_HOST** (the name of the host upon which the qsub command is running) 
-  * **PBS_SERVER** (the hostname of the pbs_server which qsub submits the job to) 
-  * **PBS_O_QUEUE** (the name of the original queue to which the job was submitted) 
-  * **PBS_O_WORKDIR** (the absolute path of the current working directory of the qsub command) 
-  * **PBS_ARRAYID** (each member of a job array is assigned a unique identifier) 
-  * **PBS_ENVIRONMENT** (set to PBS_BATCH to indicate the job is a batch job, or to PBS_INTERACTIVE to indicate the job is a PBS interactive job) 
-  * **PBS_JOBID** (the job identifier assigned to the job by the batch system) 
-  * **PBS_JOBNAME** (the job name supplied by the user) 
-  * **PBS_NODEFILE** (the name of the file contain the list of nodes assigned to the job) 
-  * **PBS_QUEUE** (the name of the queue from which the job was executed from) 
-  * **PBS_WALLTIME** (the walltime requested by the user or default walltime allotted by the scheduler) 
  
 ===== Mass Operations ===== ===== Mass Operations =====
Line 277: Line 260:
 </code> </code>
 will cancel all jobs (both running jobs and queue). will cancel all jobs (both running jobs and queue).
 +
 +
 +===== Advanced =====
 +
 +
 +The qsub command will pass certain environment variables in the Variable_List attribute of the job. These variables will be available to the job. The value for the following variables will be taken from the environment of the qsub command:
 +  * **HOME** (the path to your home directory)
 +  * **LANG** (which language you are using)
 +  * **LOGNAME** (the name that you logged in with)
 +  * **PATH** (standard path to excecutables)
 +  * **MAIL** (location of the users mail file)
 +  * **SHELL** (command shell, i.e bash,sh,zsh,csh, ect.)
 +  * **TZ** (time zone)
 +These values will be assigned to a new name which is the current name prefixed with the string "PBS_O_". For example, the job will have access to an environment variable named PBS_O_HOME which have the value of the variable HOME in the qsub command environment. In addition to these standard environment variables, there are additional environment variables available to the job.
 +  * **PBS_O_HOST** (the name of the host upon which the qsub command is running)
 +  * **PBS_SERVER** (the hostname of the pbs_server which qsub submits the job to)
 +  * **PBS_O_QUEUE** (the name of the original queue to which the job was submitted)
 +  * **PBS_O_WORKDIR** (the absolute path of the current working directory of the qsub command)
 +  * **PBS_ARRAYID** (each member of a job array is assigned a unique identifier)
 +  * **PBS_ENVIRONMENT** (set to PBS_BATCH to indicate the job is a batch job, or to PBS_INTERACTIVE to indicate the job is a PBS interactive job)
 +  * **PBS_JOBID** (the job identifier assigned to the job by the batch system)
 +  * **PBS_JOBNAME** (the job name supplied by the user)
 +  * **PBS_NODEFILE** (the name of the file contain the list of nodes assigned to the job)
 +  * **PBS_QUEUE** (the name of the queue from which the job was executed from)
 +  * **PBS_WALLTIME** (the walltime requested by the user or default walltime allotted by the scheduler)
 +
 +
  
tutorial/torque.txt · Last modified: 2024/02/28 13:12 by mjm519