User Tools

Site Tools


slurm_basics

====== 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
slurm_basics [2019/02/11 18:38]
xteng
slurm_basics [2019/02/12 15:08]
xteng
Line 1: Line 1:
 ====== Main Slurm Commands ====== ====== Main Slurm Commands ======
  
-**SBatch**+**sbatch**
 The sbatch command submits a batch processing job to the slurm queue manager. These scripts typically contain one or more srun commands to queue jobs for processing. The sbatch command submits a batch processing job to the slurm queue manager. These scripts typically contain one or more srun commands to queue jobs for processing.
  
-**SRun**+**srun**
 The srun command is used to submit jobs for execution, or to initiate steps of jobs in real time. For the full range of options that can be passed to the srun command, see the UNIX man page for srun (type man srun at the command prompt). The srun command is used to submit jobs for execution, or to initiate steps of jobs in real time. For the full range of options that can be passed to the srun command, see the UNIX man page for srun (type man srun at the command prompt).
  
-**SCancel**+**scancel**
 The scancel command will terminate pending and running job steps. You can also use it to send a unix signal to all processes associated with a running job or job step. The scancel command will terminate pending and running job steps. You can also use it to send a unix signal to all processes associated with a running job or job step.
  
-**SQueue**+**squeue**
 The squeue command will report the state of running and pending jobs. The squeue command will report the state of running and pending jobs.
  
-**SInfo**+**sinfo**
 The sinfo command will report the status of the available partitions and nodes. The sinfo command will report the status of the available partitions and nodes.
  
-**SMap**+**smap**
 The smap command is similar to the sinfo command, except it displays all of the information in a pseudo-graphical,​ ncurses terminal. The smap command is similar to the sinfo command, except it displays all of the information in a pseudo-graphical,​ ncurses terminal.
  
 +**sview**
 +The sview command is graphical user interface to view and modify Slurm state. ​
 **Example Scripts** **Example Scripts**
 * Script 1 * Script 1
Line 83: Line 85:
 #SBATCH --nodes=1 #request one node #SBATCH --nodes=1 #request one node
  
-#SBATCH --cpus-per-task= #ask for cpus+#SBATCH --cpus-per-task= #e .g. ask for cpus
  
 #SBATCH --time=02:​00:​00 #ask that the job be allowed to run for 2 hours. #SBATCH --time=02:​00:​00 #ask that the job be allowed to run for 2 hours.
  
-#SBATCH --error=job.%J.err # tell it to store the output console text to a file+#SBATCH --error=/​PATH/<​NAME>​.%J.err # tell it to store the output console text to a file
  
-#SBATCH --output=job.%J.out #tell it to store the error messages to a file+#SBATCH --output=/​PATH/<​NAME>​.%J.out #tell it to store the error messages to a file
  
 module load R #load the most recent version of R available module load R #load the most recent version of R available
slurm_basics.txt ยท Last modified: 2019/02/12 15:08 by xteng