...
Write down your shell script for submitting your job. You can use your favourite terminal editor, for example VIM or GNU nano:
Code Block language bash theme Emacs vim submit.slm
The submit script has the following structure:
- SHEBANG (#!/bin/bash)
- #SBATCH directives for SLURM.
- Load the required modules (module load <module>).
Execute the program (srun <program>).
Info If you have problems creating your script, you can use the Job Script Generator [old] or one of the many examples for the different applications.
Finally, submit the script to the batch system using the sbatch command:
Code Block language bash theme Emacs sbatch submit.slm
...
Related articles
...