Difference between revisions of "SLURM"
Jump to navigation
Jump to search
(Created page with "== #SBATCH Usage == If you are writing a jobscript for a SLURM batch system, the magic cookie is "#SBATCH". To use it, start a new line in your script with "#SBATCH". Fol...") |
|||
| Line 28: | Line 28: | ||
|- | |- | ||
| --cpus-per-task=<num_threads> || number of threads to execute OpenMP application with | | --cpus-per-task=<num_threads> || number of threads to execute OpenMP application with | ||
| − | |||
|} | |} | ||
| Line 34: | Line 33: | ||
== References == | == References == | ||
| − | [[https://slurm.schedmd.com/sbatch.html | + | [[https://slurm.schedmd.com/sbatch.html SLURM sbatch documentation]] |
Revision as of 15:31, 28 March 2018
#SBATCH Usage
If you are writing a jobscript for a SLURM batch system, the magic cookie is "#SBATCH". To use it, start a new line in your script with "#SBATCH". Following that, you can put one of the parameters shown below, where the word written in <...> should be replaced with a value.
Basic settings:
| Parameter | Function |
| --job-name=<name> | job name |
| --output=<path> | path to the file where the job (error) output is written |
Requesting resources:
| Parameter | Function |
| --time=<runlimit> | runtime limit in the format hours:min:sec; once the time specified is up, the job will be killed by the scheduler |
| --mem=<memlimit> | job memory request, e. g. 1gb |
Parallel programming (read more here):
| Parameter | Function |
| --nodes=1 | start a parallel job for a shared-memory system on only one node |
| --cpus-per-task=<num_threads> | number of threads to execute OpenMP application with |