Difference between revisions of "Slurm"

From CAC Documentation wiki
Jump to navigation Jump to search
(Created page with basic info from ATLAS2 page)
 
(Moved links to a References section (new), moved commands to Common Commands (updated title) section, deleted Slurm HELP section)
Line 3: Line 3:
 
__TOC__
 
__TOC__
  
==== Common Slurm Commands ====
+
== Common Commands ==  
[https://slurm.schedmd.com/quickstart.html Slurm Quickstart Guide]
 
  
[https://slurm.schedmd.com/pdfs/summary.pdf Command/Option Summary (two page PDF)]
+
A few Slurm commands to initially get familiar with:
 
 
==== Slurm HELP ====
 
 
 
Slurm Workload Manager [https://slurm.schedmd.com/quickstart.html Quick Start User Guide] - this page lists all of the available Slurm commands
 
 
 
Slurm Workload Manager [https://slurm.schedmd.com/faq.html Frequently Asked Questions] includes FAQs for Management, Users and Administrators
 
 
 
[https://rc.fas.harvard.edu/resources/documentation/convenient-slurm-commands/ Convenient SLURM Commands] has examples for getting information on jobs and controlling jobs
 
 
 
Slurm Workload Manager - [https://slurm.schedmd.com/sbatch.html sbatch] - used to submit a job script for later execution. The script will typically contain one or more srun commands to launch parallel tasks.
 
 
<pre>
 
<pre>
A few slurm commands to initially get familiar with:
 
 
scontrol show nodes
 
scontrol show nodes
 
scontrol show partition
 
scontrol show partition
 +
</pre>
  
Submit a job: sbatch testjob.sh
+
Submit a job: <code>sbatch testjob.sh</code>
Interactive Job: srun -p short --pty /bin/bash
 
  
 +
Interactive Job: <code>srun -p short --pty /bin/bash</code>
 +
 +
<pre>
 
scontrol show job [job id]
 
scontrol show job [job id]
 
scancel [job id]
 
scancel [job id]
 
sinfo -l
 
sinfo -l
 
</pre>
 
</pre>
 +
 +
== References ==
 +
 +
:* [https://slurm.schedmd.com/quickstart.html Quick Start User Guide] - this page lists all of the available Slurm commands
 +
:* [https://slurm.schedmd.com/pdfs/summary.pdf Command/Option Summary] (two page PDF)
 +
:* [https://slurm.schedmd.com/faq.html Frequently Asked Questions] includes FAQs for Management, Users and Administrators
 +
:* [https://rc.fas.harvard.edu/resources/documentation/convenient-slurm-commands/ Convenient SLURM Commands] has examples for getting information on jobs and controlling jobs
 +
:* [https://slurm.schedmd.com/sbatch.html sbatch] - used to submit a job script for later execution. The script will typically contain one or more srun commands to launch parallel tasks.

Revision as of 17:06, 31 May 2019

Intro

Common Commands

A few Slurm commands to initially get familiar with:

scontrol show nodes
scontrol show partition

Submit a job: sbatch testjob.sh

Interactive Job: srun -p short --pty /bin/bash

scontrol show job [job id]
scancel [job id]
sinfo -l

References