1. Home
  2. Docs
  3. Running Jobs
  4. Examples

Examples

A repository of example job submissions scripts is located in the /nfs/apps/Submission directory. The default scripts are run_example and run_example_email.

Default Example

#/bin/bash -l

##Accounting
#SBATCH --partition=general
#SBATCH --qos=normal

##Submission
#SBATCH --nodes=2
#SBATCH --job-name="My Program"
 
##Load Modules
module load intel/2019.1.053 intelmpi/2019.1.144

##Run the program
mpirun /path/to/mpi_program

Accounting

Define the partition and QOS you wish to use. The partition is a required field, the normal QOS will be used if no QOS is specified. In the default example we use the general partition and normal QOS.

##Accounting
#SBATCH --partition=general
#SBATCH --qos=normal

Submission

Specify the desired nodes, tasks, times, job names and more. For this example we will request 2 nodes, each node providing 40 cores, and name the job “My Program”. Please see the system section for more information on the hardware design of our compute systems.

##Submission
#SBATCH --nodes=2
#SBATCH --job-name="My Program"

Modules

Specify the environmental modules required for your code and job. Our list of available modules is constantly evolving, you can view them with the module which command from your login system. In the default example we are using the Intel Compiler and Intel MPI modules.

##Load Modules
module load intel/2019.1.053 intelmpi/2019.1.144

Program

Specify the path to your program. The mpirun or srun commands can be used to launch your program.

##Run the program
mpirun /path/to/mpi_program