
2 Netw ork Administration
Use Different MPI Builds on UNIX Systems
In this section...
“Build MPI” on page 2-6
“Use Your MPI Build” on page 2-6
Build MPI
To use an MPI build that differs from the one provided with Parallel
Computing Toolbox, this stage outlines the steps for creating an MPI build. If
you already have an alternative MPI build, proceed to “Use Your MPI Build”
on page 2-6.
1 Unpack the M PI sources into the target file system on your machine. For
example, suppose you have downloaded
mpich2-distro.tgz and want
to unpack it into
/opt for building:
#cd/opt
# mkdir mpich2 && cd mpich2
# tar zxvf path/to/mpich2-distro.tgz
# cd mpich2-1.4.1p1
2 B uild your MPI usin g t he enable-shared option(thisisvital,asyoumust
build a shared library MPI, binary compatible with
MPICH2-1.4.1p1 for
R2013b and later). For example, the following commands build an MPI
with the
nemesis channel device and the g fork er launcher.
#./configure -prefix=/opt/mpich2/mpich2-1.4.1p1 \
--enable-shared --with-device=ch3:nemesis \
--with-pm=gforker 2>&1 | tee log
# make 2>&1 | t ee -a log
# make install 2>&1 | tee - a log
Use Your MPI Build
When your MPI build is ready, this stage highlights the steps to use it. To get
the Parallel Computing Toolbo x mpiexec scheduler working with a different
MPI build, follow these steps. Most of th ese steps are also needed if y ou w an t
to use a different M PI build with third party-schedulers (LSF, generic).
2-6
Comentarios a estos manuales