HPC Job Submission
Preparing HPC Job Script
Section titled “Preparing HPC Job Script”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
Recommended approach
Section titled “Recommended approach”Copy and modify a suitable template, for details please refer to HPC Job Template
Make sure to:
- Place all
#SBATCHlines 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
Submit HPC Job via CLI Terminal
Section titled “Submit HPC Job via CLI Terminal”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