MATLAB DISTRIBUTED COMPUTING SERVER 4 - SYSTEM ADMINISTRATORS GUIDE Manuale Utente Pagina 25

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 148
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 24
Use Different MPI Builds on UNIX
®
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.
Follow ing the example in “Build MP I ” on p age 2-6,
/opt/mpich2/mpich2-1.4.1p1/bin/mpiexec and
/opt/mpich2/mpich2-1.4.1p1/lib/libmpich.so are ready to use, so you
can test the build w ith :
$ /opt/mpich2/mpich2-1.4.1p1/bin/mpiexec -n 4 hostname
2 Create an mpiLibConf function to direct Parallel Computing Toolbox to
useyournewMPI.Writeyour
mpiLibConf.m to return the appropriate
information for your build. For example:
function [primary, extras] = mpiLibCon f
primary = '/opt/mpich2/mpich2-1.4.1p1/lib/libmpich.so';
extras = {};
The primary path must be valid on the cluster; and your
mpiLibConf.m file must be higher on the cluster w orkers’ path than
matlabroot/toolbox/distcomp/mpi.(SendingmpiLibConf.m as a file
dependency for this purpose does not work. You can get the
mpiLibConf.m
function on the worker path by either moving the file into a folder on the
path, or by having the scheduler use
cd in its command so that it starts the
MATLAB worker from within the folder that contains the function.)
3 Determine n ecessary daemons and command-line options.
Determine all necessary daemons (ofte n som ething like
mpdboot or
smpd). T he gforker build example in this section uses an MPI that needs
no services or daemons running on the cluster, but it can u se 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 u p a configuration
to use the
mpiexec executable from your new MPI build. It is crucial
that you use matching
mpiexec, MPI library, and any daem o ns (if
2-7
Vedere la pagina 24
1 2 ... 20 21 22 23 24 25 26 27 28 29 30 ... 147 148

Commenti su questo manuale

Nessun commento