Skip to content

HPC Job Submission

Every job submitted to the cluster needs a submission script (usually .sh file).
The script contains two main parts:

  • Scheduler directives (#SBATCH …) — resource requests, time limit, partition, etc.
  • Execution commands — loading modules, setting environment, running your program

Copy and modify a suitable template, for details please refer to HPC Job Template

Make sure to:

  • Place all #SBATCH lines before any actual commands
  • Set a realistic wall-time
  • Choose the appropriate partition
  • Redirect output/error files if needed (--output=, --error=)
  • Load required software modules

You may submit HPC job with the command below in CLI. System will assign and show a Job ID for successful submissions.

$ sbatch <path to the job script>/<job script>.sh