new mpi library on the cluster since wsu’s grid had an upgrade of its operating system recently,...

3
New MPI Library on the cluster Since WSU’s Grid had an upgrade of its operating system recently, we need to use a new MPI Library to compile and run our Jobs. 1

Upload: olivia-townsend

Post on 18-Dec-2015

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: New MPI Library on the cluster Since WSU’s Grid had an upgrade of its operating system recently, we need to use a new MPI Library to compile and run our

New MPI Library on the cluster

Since WSU’s Grid had an upgrade of its operating system recently, we need to use a new MPI Library to compile and run our Jobs.

1

Page 2: New MPI Library on the cluster Since WSU’s Grid had an upgrade of its operating system recently, we need to use a new MPI Library to compile and run our

How to compile your program

First, we need to run “qsub –I” command.Second, load the new mpi module by the next two commands:

module load pgi-14.6/compilermodule load pgi-14.6/compiler-mpi

Third, use mpicc command to compile your program as before

2

Page 3: New MPI Library on the cluster Since WSU’s Grid had an upgrade of its operating system recently, we need to use a new MPI Library to compile and run our

The new script to submit jobs

#!/bin/bash

#PBS -l ncpus=8#PBS -l nodes=4:ppn=2#PBS -m ea#PBS -q mtxq#PBS -o grid.wayne.edu:~fb4032/tmp3/new3#PBS -e grid.wayne.edu:~fb4032/tmp3/new4module load pgi-14.6/compilermodule load pgi-14.6/compiler-mpi/wsu/apps/compilers/pgi/pgicdk-146/linux86-64/2014/mpi/mpich/bin/mpiexec \-machinefile $PBS_NODEFILE \-n 8 \/wsu/home/fb/fb40/fb4032/hello

The commands in red are the modifications, and you should just run “qsub job.sh” to submit jobs as before.

3