SLURM Submit script example
For more information use the Job Script Generator.
starccm_example.slm
#!/bin/bash #SBATCH -J starccm_example #SBATCH -e starccm_example.err #SBATCH -o starccm_example.out #SBATCH -p std #SBATCH --nodes=1 #SBATCH --ntasks=1 #SBATCH --mem=2G module load apps/starccm/12.06.011 INPUT_DIR=${SLURM_SUBMIT_DIR} OUTPUT_DIR=${SLURM_SUBMIT_DIR} cd $SCRATCH cp -r $INPUT_DIR/* $SCRATCH starccm starccm_example.inp starccm_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: Total amount of memory allocated per node. It must be equal or lower than 4GB per core.
- If the job needs up to 8GB per core, add: #SBATCH -C mem