MATLAB DISTRIBUTED COMPUTING SERVER 4 - SYSTEM ADMINISTRATORS GUIDE Manuel d'utilisateur Page 7

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 24
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 6
Using a Different MPI Build on UNIX
®
Operating Systems
1 Test your build by running the mpiexec executable. The build should be
ready to test if its bin/mpiexec and lib/libmpich.so are available in the
MPI installation location.
Following the example in “Building MPI” on page
2-6, /opt/mpich2/mpich2-1.0.8/bin/mpiexec and
/opt/mpich2/mpich2-1.0.8/lib/libmpich.so are ready to use, so you
can test the build with:
$ /opt/mpich2/mpich2-1.0.8/bin/mpiexec -n 4 hostname
2 Create an mpiLibConf function to direct Parellel Computing Toolbox to
use your new MPI. Write your mpiLibConf.m to return the appropriate
information for your build. For example:
function [primary, extras] = mpiLibConf
primary = '/opt/mpich2/mpich2-1.0.8/lib/libmpich.so';
extras = {};
The primary path must be valid on the cluster; and your
mpiLibConf.m Þle must be higher on the cluster workers’ path than
matlabroot/toolbox/distcomp/mpi. (Sending mpiLibConf.m as a Þle
dependency for this purpose does not work. You can get the mpiLibConf.m
function on the worker path by either moving the Þle into a directory on the
path, or by having the scheduler use cd in its command so that it starts the
MATLAB worker from within the directory that contains the function.)
3 Determine necessary daemons and command-line options.
Determine all necessary daemons (often something like mpdboot or
smpd). The gforker build example in this section uses an MPI that needs
no services or daemons running on the cluster, but it can use only the
local machine.
Determine the correct command-line options to pass to mpiexec.
4 Use one of the following options to set up your scheduler to use your new
MPI build:
For the simplest case of the mpiexec scheduler, set up a conÞguration
to use the mpiexec executable from your new MPI build. It is crucial
that you use matching mpiexec, MPI library, and any daemons (if
2-7
Vue de la page 6
1 2 3 4 5 6 7 8 9 10 11 12 ... 23 24

Commentaires sur ces manuels

Pas de commentaire