SLURM Submit script example
For more information use the Job Script Generator.
cp2k_example.slm
#!/bin/bash #SBATCH -J cp2k_example #SBATCH -e cp2k_example.err #SBATCH -o cp2k_example.out #SBATCH -p std #SBATCH --nodes=1 #SBATCH --ntasks=1 #SBATCH --mem=4G module load apps/cp2k/6.1 INPUT_DIR=${PWD} OUTPUT_DIR=${PWD} cd $TMPDIR cp -r $INPUT_DIR $TMPDIR cp2k cp2k_example.inp cp2k_example.out cp ./* $OUTPUT_DIR
Sbatch options:
- -J: Specify a name for the job allocation. The default is the name of the batch script.
- -e: Specify a name for the error output file.
- -o: Specify a name for the output file.
- -p: Specify the name of the partition (queue) where the job will be submited. The default is std.
- --nodes: Number of nodes requested for allocation
- --ntasks: Number of processes requested for allocation
- --mem-per-cpu: Memory allocated per core.