Skip to main content

7.10) MPI Job Batch Submission Example: Standard SGE Syntax


For smaller jobs it can be quicker to use the standard SGE syntax. For example, small_mpi.sh:

[bash]
#!/bin/bash
# Use current working directory and environment
#$ -cwd –V
# request 8 cores
#$ -pe ib 8
# Request 2Gb per core
#$ -l h_vmem=2G
# Request 4 hours of runtime
#$ -l h_rt=4:00:00
mpirun ./mpi_prog
[/bash]

This will allocate 8 cores, each with 2GB and not necessarily on the same node. It can then be submitted with:

[bash]
$ qsub small_mpi.sh
[/bash]