User Tools

Site Tools


linux:slurm

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
linux:slurm [2023/04/04 14:53] a.boevlinux:slurm [2023/12/20 18:43] – [Squeue tips] admin
Line 1: Line 1:
 ====== SLURM (Simple Linux Utility for Resource Management) ====== ====== SLURM (Simple Linux Utility for Resource Management) ======
  
 +===== Basic commands =====
  
 +  - //**sbatch** run_script// is used to submit a job script for later execution. The script will typically contain one or more srun commands to launch parallel tasks.
 +  - //**scancel** job_id// is used to cancel a pending or running job or job step. It can also be used to send an arbitrary signal to all processes associated with a running job or job step.
 +  - //**squeue**// reports the state of jobs or job steps. It has a wide variety of filtering, sorting, and formatting options. By default, it reports the running jobs in priority order and then the pending jobs in priority order.
  
 +
 +More info see [[https://slurm.schedmd.com/quickstart.html|here]]
  
 ===== Squeue tips ===== ===== Squeue tips =====
Line 10: Line 16:
 squeue -o '%o' | awk -F / '{$(NF--)} {gsub(" ",FS)};  $0="cd "$0 '  squeue -o '%o' | awk -F / '{$(NF--)} {gsub(" ",FS)};  $0="cd "$0 ' 
 </code> </code>
 +
 +add alias to your ~/.bashrc:
 +<code>
 +alias qp="squeue -o '%o' | awk -F / '{$(NF--)} {gsub(" ",FS)};  $0="cd "$0 '"
 +</code>
 +
  
 Output Output
linux/slurm.txt · Last modified: 2023/12/20 18:47 by admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki