Skip to content

Instantly share code, notes, and snippets.

@julesghub
Created May 1, 2023 03:53
Show Gist options
  • Save julesghub/566f6593edf53f6bf9a919859ced58ae to your computer and use it in GitHub Desktop.
Save julesghub/566f6593edf53f6bf9a919859ced58ae to your computer and use it in GitHub Desktop.
Singularity on GADI - qsub job.sh
#!/bin/bash -l
#PBS -P m18
#PBS -q normal
#PBS -l ncpus=96
#PBS -l walltime=04:00:00
#PBS -l mem=80Gb
#PBS -l jobfs=2Gb
#PBS -l software=underworld
#PBS -l wd
#PBS -l storage=gdata/m18+gdata/q97
# load Singularity
module load singularity
module load openmpi/4.1.4
export singularityDir=/g/data/m18/software/underworld/
# Define the container to use
export containerImage=$singularityDir/underworld-215.sif
export model="modelName.py"
# execute
mpiexec -n $PBS_NCPUS singularity exec $containerImage bash -c "python3 $model"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment