Using the MOAB Workload Manager - MOAB MPICH1 Job
Article Index
Using the MOAB Workload Manager
Basic MOAB Script
MOAB Serial Job
Running an interactive job
Running an MPI job
MOAB MPICH2 Job
MOAB OpenMPI Job
MOAB MPICH1 Job
Job Dependencies
MOAB Queues
All Pages

Example 5: Submitting a parallel job with mvapich1

The mvapich implementation of mpich version 1 is installed on the HPC cluster. This version seamlessly integrates the communication layers for the infiniband fabric for the users. It is one of the easiest implementations to use. However, it suffers in both robustness and ease of cleanup. The use of mpich version 2 or openmpi is strongly encouraged above this version.

To compile our test program with the gnu compiler, we run the following commands:

$ module load gnu-mvapich
$ mpicc -o trap-mpichv1 trap.c -lm

Using the following script, we can submit our job:

#!/bin/bash

#MOAB -l nodes=8
#MOAB -j oe
#MOAB -N TRAP-MPICHV1
#MOAB -l walltime=120:00

module load gnu-mvapich
mpirun $PBS_O_WORKDIR/trap-mpichv1

When save in the file mpichv1.sh, we can submit our program using

 msub mpichv1.sh