Submit Job Scripts - Templates¶
Simple Job Script¶
#!/bin/bash
#SBATCH -p PARTITION #Name of the Partition to use
#SBATCH --nodelist=NODENAME #Name of the Node to be allocated
#SBATCH -J JOB-NAME #Job name
#----------------------------------------------------------------------------#
##path to executable code
EXEC=/lustre/t0/scratch/users/YOUR.USER/EXECUTABLE.CODE
srun $EXEC
In this script you need to specify the queue name (Partition) to be used, the node name to be allocated for Job execution, and the path to the code/program to be executed.
EUPS Load Script¶
#!/bin/bash
#SBATCH -p PARTITION #Name of the Partition to use
#SBATCH --nodelist=NODENAME #Name of the Node to be allocated
#SBATCH -J JOB-NAME #Job name
#----------------------------------------------------------------------------#
#Load EUPS
. /mnt/eups/linea_eups_setup.sh
#Load package
setup <PACKAGE> <VERSION>
##path to executable code
EXEC=/lustre/t0/scratch/users/YOUR.USER/EXECUTABLE.CODE
srun $EXEC
Parallel Submit Job Script¶
OpenMP¶
MPI¶
Last update:
April 30, 2025