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
linux:slurm [2023/04/04 14:53] a.boevlinux:slurm [2023/12/20 18:47] (current) – [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 =====
  
 === How to see path to job folder === === How to see path to job folder ===
 +add alias to your ~/.bashrc:
 <code> <code>
-squeue -o '%o' | awk -F / '{$(NF--)} {gsub(" ",FS)};  $0="cd "$0 ' +alias qp="squeue -o '%o' | awk -F / '{\$(NF--)} {gsub(\\",FS)};  \$0=\"cd \"\$0 '"
 </code> </code>
 +
 +
  
 Output Output
linux/slurm.1680609228.txt.gz · Last modified: 2023/04/04 14:53 by a.boev

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki