Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| hpc:hpc_tubit:slurm_usage:batch_jobs [2019/06/27 20:01] – kraus | hpc:hpc_tubit:slurm_usage:batch_jobs [2020/02/26 10:56] (aktuell) – kraus | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| + | ====== Batch Jobs ====== | ||
| + | * < | ||
| + | <span style=" | ||
| + | </ | ||
| + | |||
| + | * < | ||
| + | <span style=" | ||
| + | </ | ||
| + | |||
| + | |||
| + | <code bash slurm_jobscript_header.sh> | ||
| + | #!/bin/bash --login | ||
| + | |||
| + | ################################################################################################### | ||
| + | # WARNING: Please adapt all relevant parameters so that they fit the requirements of your job(s). # | ||
| + | # Questions and Remarks welcome to Sebastian Kraus # | ||
| + | ################################################################################################### | ||
| + | |||
| + | # %x: job name; %j: job id; %N: node; %t: task id; %a: array id (and others) | ||
| + | # #SBATCH -o %x.%j.%N.out | ||
| + | # #SBATCH -e %x.%j.%N.err | ||
| + | |||
| + | # #SBATCH -D $PWD # if needed change to current working directory | ||
| + | |||
| + | #SBATCH -J jobname | ||
| + | #SBATCH -n 1 # total number of tasks/cores for your job | ||
| + | #SBATCH --hint=nomultithread | ||
| + | # #SBATCH --ntasks-per-node=1 | ||
| + | #SBATCH -N 1 # number of nodes | ||
| + | # #SBATCH -p smp # partition the job gets scheduled: standard (default), smp, gpu (uncomment, if you want your job to run on hosts in SMP partition) | ||
| + | #SBATCH --time=00: | ||
| + | #SBATCH --mem=4GB | ||
| + | # #SBATCH --mem-per-cpu=1GB | ||
| + | |||
| + | # #SBATCH --gres=gpu: | ||
| + | |||
| + | # #SBATCH --mail-type=END | ||
| + | # #SBATCH --mail-user=username | ||
| + | |||
| + | |||
| + | # and now your job definition ;-) | ||
| + | |||
| + | module add [your_modules] | ||
| + | |||
| + | [your_commands] | ||
| + | |||
| + | </ | ||
| + | |||
| + | * < | ||
| + | <span style=" | ||
| + | </ | ||
| + | * < | ||
| + | <span style=" | ||
| + | </ | ||
| + | |||
| + | \\ | ||
| + | <WRAP rightalign> | ||
| + | date of revision: 07-24-2019 © kraus | ||
| + | </ | ||