|
|
MPI on Sequoia at MCSR
Sequoia has several implementations of MPI installed, but barring a specific
need, we recommend the SGI MPT library, which takes advantage of sequoia's
Infiniband network.
Setting up environment for MPI
To setup your environment, run the following:
. /usr/local/apps/mpt_2.sh
Compiling MPI with C/C++
To use any
of the Intel compilers (icc or ifort) you
will need to setup your environment properly. gcc is also
available.
(
Compilers on Sequoia)
To compile an MPI program, use the -l option to link
against the MPI library. For example:
icc -lmpi -o program_name program_name.c
Executing an MPI Program
To execute a compiled MPI program, run it using mpirun or
mpiexec inside a
PBS script.
|