2 Network Administration
Using a Different MPI Build on UNIX Operating Systems
In this section...
“Building MPI” on page 2-6
“Using Your MPI Build” on page 2-6
Building 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 “Using Your MPI
Build” on page 2-6.
1 Unpack the MPI sources into the target Þle 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.0.8
2 Build your MPI using the enable-sharedlibs option (this is vital, as you
must build a shared library MPI, binary compatible with MPICH2-1.0.8
for R2009b and later). For example, the following commands build an MPI
with the nemesis channel device and the gforker launcher.
# ./configure -prefix=/opt/mpich2/mpich2-1.0.8 \
--enable-sharedlibs=gcc \
--with-device=ch3:nemesis \
--with-pm=gforker 2>&1 | tee log
# make 2>&1 | tee -a log
# make install 2>&1 | tee -a log
Using Your MPI Build
When your MPI build is ready, this stage highlights the steps to use it. To get
the Parallel Computing Toolbox mpiexec scheduler working with a different
MPI build, follow these steps. Most of these steps are also needed if you want
to use a different MPI build with third party-schedulers (LSF, generic).
2-6
Comentários a estes Manuais