Creating sbatch script
Jump to navigation
Jump to search
A skeleton Slurm script: <source lang='bash'>
- -----------------------------Mail address-----------------------------
- SBATCH --mail-user=
- SBATCH --mail-type=ALL
- -----------------------------Output files-----------------------------
- SBATCH --output=output_%j.txt
- SBATCH --error=error_output_%j.txt
- -----------------------------Other information------------------------
- SBATCH --comment=
- SBATCH --account=
- -----------------------------Required resources-----------------------
- SBATCH --partition=
- SBATCH --time=0-0:0:0
- SBATCH --ntasks=
- SBATCH --cpus-per-task=
- SBATCH --mem-per-cpu=
- -----------------------------Environment, Operations and Job steps----
- load modules
- export variables
- your job
</source>