Job Scripts

This section explains the basics of creating a job script. These scrips can be used with CCQ to automatically launch the nodes needed for the HPC Job.

Torque

For information on using TORQUE to manually submit and manage jobs, see the TORQUE Administrator Guide.

Sample Torque Script

Below is a sample Torque Script.

#!/bin/bash 
#PBS -k o 
#PBS -l nodes=2:ppn=6,walltime=30:00
#PBS -M email@cloudycluster.com
#PBS -m abe
#PBS -N myExampleJob
#PBS -j oe 
mpiexec -np 12 ~/mnt/orangefs/myMpiProgram

Slurm

For information on using Slurm to manually submit and manage jobs, see the Slurm Workload Manager documentation.

Sample Slurm Script

Below is a sample Slurm Script.

#!/bin/bash
#SBATCH -N 2
#SBATCH --ntasks-per-node 6 
mpiexec -np 12 ~/mnt/orangefs/myMpiProgram