This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
|
using-slurm [2019/02/01 12:30] jean-baka [Using SLURM] |
using-slurm [2020/10/08 13:06] jean-baka [Batch jobs] |
||
|---|---|---|---|
| Line 8: | Line 8: | ||
| * highmem | * highmem | ||
| - | " | + | " |
| To see more information about the queue configuration, | To see more information about the queue configuration, | ||
| - | < | + | < |
| Fri Feb 1 15:27:44 2019 | Fri Feb 1 15:27:44 2019 | ||
| NODELIST | NODELIST | ||
| Line 24: | Line 24: | ||
| </ | </ | ||
| - | The above tells you, for instance, that compute04 has 8 CPUs while compute2 has 64 CPUs. And that a job sent to the " | + | The above tells you, for instance, that compute04 has 8 CPUs while compute2 has 64 CPUs. And that a job sent to the " |
| ===== Submitting jobs ===== | ===== Submitting jobs ===== | ||
| ==== Interactive jobs ==== | ==== Interactive jobs ==== | ||
| - | How to get an interactive session, | + | How to get an interactive session, |
| < | < | ||
| salloc: Granted job allocation 1080 | salloc: Granted job allocation 1080 | ||
| Line 41: | Line 41: | ||
| ==== Batch jobs ==== | ==== Batch jobs ==== | ||
| - | Request | + | We are writing a SLURM script below. The parameters in its header request |
| < | < | ||
| #SBATCH -p batch | #SBATCH -p batch | ||
| Line 64: | Line 64: | ||
| < | < | ||
| #SBATCH -p batch | #SBATCH -p batch | ||
| - | #SBATCH -n 4 | ||
| #SBATCH -J blastn | #SBATCH -J blastn | ||
| + | #SBATCH -n 4 | ||
| # load the blast module | # load the blast module | ||
| Line 85: | Line 85: | ||
| ==== Check queue status ==== | ==== Check queue status ==== | ||
| - | '' | + | '' |
| < | < | ||
| JOBID PARTITION | JOBID PARTITION | ||