SLURM Submit script example
For more information use the Job Script Generator.
aster_example.slm
#!/bin/bash #SBATCH -J aster_example #SBATCH -e aster_example.err #SBATCH -o aster_example.out #SBATCH -p std #SBATCH -N 1 #SBATCH -n 12 #SBATCH --mem-per-cpu=4G module load apps/code_aster/13.4 INPUT_DIR=${SLURM_SUBMIT_DIR} OUTPUT_DIR=${SLURM_SUBMIT_DIR} cd $SCRATCH cp -r $INPUT_DIR/* $SCRATCH as_run aster_example.export 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.
- -N: Number of nodes requested for allocation
- -n: Number of processes requested for allocation
- --mem-per-cpu: Memory allocated per core.