Use MVAPICH2 on Eddie

MVAPICH2 is an MPI-2 implementation which also includes all MPI-1 features. It contains Open Fabric interface supporting Infiniband interconnection on eddie.

The following instruction shows the steps of using MVAPICH2 on eddie:

1. Login to eddie

ssh eddie.ecdf.ed.ac.uk

2. Load MVAPICH2 module to your shell

module load mvapich2/gcc

If you prefer to build codes with Intel compilers, you can load mvapich2/intel instead

3. Build application

cd /work-dir/
mpicc -o hello hello.c

4. Write a job script hello.sh

#!/bin/sh
###################################################
#                                                 #  
# A SGE batch job template for ECDF Cluster eddie #
#                                                 #
# by ECDF System Team                             # 
# ecdf-systems-team@lists.ed.ac.uk                #
#                                                 #
###################################################

# Grid Engine options

#$ -cwd
#$ -l h_rt=00:05:00
#$ -N hello

# initialise environment module

. /etc/profile

# use Infinipath MPI with Intel (icc,ifort) compiler

#module add intel/cce
#module add intel/fce
#module add mvapich2/intel

# use Infinipath MPI with GNU (gcc,g++,g77,gfortran) compiler

module add mvapich2/gcc

# run MPI job

mpirun -np $NSLOTS ./hello

5. Submit job to Grid Engine

qsub -cwd -pe mvapich2 8 hello.sh

MVAPICH2 (last edited 2007-08-30 14:05:58 by Yuan WAN)