...
Codeblock | ||||||
---|---|---|---|---|---|---|
| ||||||
#!/bin/bash #SBATCH -p medium40 #SBATCH -N 16 #SBATCH -t 06:00:00 module load impi srun mybinary |
Tasks, CPUs and Hyperthreading
By default, hyperthreading is activated. Our nodes have 40 or 96 cores, with two threads each. Slurm doesn't differentiate between hyperthreads and cores and calls a single hyperthread CPU. So don't be confused by this weird nomenclature. If you do not specify anything, 192 or 80 processes will be started. If you want to disable it, you will have to use the --tasks-per-node
option and set it to 96 or 40. If your software uses shared memory parallelization (e.g. OpenMP), you only need a single task per node, but more CPUs per task, which is set by -c
. Take a look at the examples for more informationThe job scripts have to have a shebang line at the top, followed by the #SBATCH
options. These #SBATCH
comments have to be at the top, as Slurm stops scanning for them after the first non-comment non-whitespace line (e.g. an echo
or variable declaration).
Getting Information about Jobs
...