Submitting Jobs

The Job Script

To submit jobs on a cluster, one needs to allocate resources and then run the executable over these resources. This is usually done by writing a job script. In this job script, you specify a partition, the resources your job needs (CPUs, memory, GPUs, etc) and a QoS.

Refer to the Sample Job Scripts section for help on writing job scripts.

Submit your Job

After you have your job script written in a file (say job.sh), submit the job via the sbatch command as shown below:

sbatch job.sh

On successful submission, you would see an output similar to

Submitted batch job 1025

Where that number 1025 is the job id number. This is job id number is needed for troubleshooting, so make a note of it.

You can then monitor the status of your job, refer to the Monitoring Jobs section.