using-slurm
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| using-slurm [2019/02/01 12:37] – [Check queue status] jean-baka | using-slurm [2026/02/05 08:31] (current) – aorth | ||
|---|---|---|---|
| Line 12: | Line 12: | ||
| To see more information about the queue configuration, | To see more information about the queue configuration, | ||
| - | < | + | < |
| - | Fri Feb 1 15:27:44 2019 | + | Thu Aug 04 15:08:48 2022 |
| NODELIST | NODELIST | ||
| - | compute2 | + | compute03 |
| - | compute03 | + | compute05 |
| - | compute03 | + | compute06 |
| - | compute04 | + | compute07 |
| - | hpc 1 debug* | + | hpc 1 debug* |
| - | mammoth | + | |
| - | taurus | + | |
| - | </ | + | |
| - | The above tells you, for instance, that compute04 has 8 CPUs while compute2 | + | The above tells you, for instance, that compute06 |
| ===== Submitting jobs ===== | ===== Submitting jobs ===== | ||
| Line 31: | Line 28: | ||
| < | < | ||
| salloc: Granted job allocation 1080 | salloc: Granted job allocation 1080 | ||
| - | [aorth@taurus: ~]$</ | + | [aorth@compute05: ~]$</ |
| - | **NB:** interactive jobs have a time limit of 8 hours: if you need more, then you should write a batch script. | + | **NB:** interactive jobs have a time limit of 8 hours: if you need more, then you should write an sbatch |
| You can also open an interactive session on a specific node of the cluster by specifying it through the '' | You can also open an interactive session on a specific node of the cluster by specifying it through the '' | ||
| Line 41: | Line 38: | ||
| ==== Batch jobs ==== | ==== Batch jobs ==== | ||
| - | Request | + | We are writing a SLURM script below. The parameters in its header request |
| - | < | + | < |
| #SBATCH -p batch | #SBATCH -p batch | ||
| #SBATCH -J blastn | #SBATCH -J blastn | ||
| Line 53: | Line 50: | ||
| blastn -query ~/ | blastn -query ~/ | ||
| - | Submit | + | In the above, please **DO NOT FORGET the ' |
| + | |||
| + | We then submit | ||
| < | < | ||
| Submitted batch job 1082</ | Submitted batch job 1082</ | ||
| Line 62: | Line 61: | ||
| Instead, you can use a local " | Instead, you can use a local " | ||
| - | < | + | < |
| #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 84: | Line 83: | ||
| All output is directed to '' | All output is directed to '' | ||
| - | ==== Check queue status | + | ==== Run job using a GPU ==== |
| - | '' | + | Currently there is only one compute node with GPU capabilities. As of February 2026, compute06 has an NVIDIA Tesla v100 with 32GB of RAM. In order to use this you will need to add an extra " |
| - | < | + | |
| - | JOBID PARTITION | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | </ | + | |
| - | In addition to the information above, it is sometimes useful to know what is the number of CPUs (computing cores) allocated to each job: the scheduler will queue jobs asking for resources that aren't available, most often because the other jobs are eating up all the CPUs available on the host. To get the number of CPUs for each job and display the whole thing nicely, the command is slightly more involved: | + | For example, '' |
| - | < | + | < |
| - | JOBID PARTITION | + | # |
| - | 16330 batch | + | #SBATCH -w compute06 |
| - | | + | #SBATCH --gres=gpu:v100:1 |
| - | | + | #SBATCH -n 8 |
| - | | + | #SBATCH -J beast-GPU |
| - | | + | |
| - | 16349 | + | |
| - | </ | + | |
| - | or, alternatively: | + | # load module(s) |
| + | module load beagle/ | ||
| + | module load beast/ | ||
| - | < | + | beast -beagle_info</ |
| - | USER JOBID | + | |
| - | pyumbya | + | |
| - | ckeambou | + | |
| - | ckeambou | + | |
| - | dkiambi | + | |
| - | fkibegwa | + | |
| - | jbaka | + | |
| - | </ | + | |
| + | |||
| + | ==== Check queue status ==== | ||
| + | '' | ||
| + | < | ||
| + | JOBID PARTITION | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
using-slurm.1549024662.txt.gz · Last modified: by jean-baka
