mpiLibConf
Location of MPI implementation
Description
[
returns the message passing interface (MPI) implementation library that communicating jobs
use. primaryLib
,extras
] = mpiLibConfprimaryLib
is the name of the shared library file containing the
MPI entry points. extras
specifies the names of other libraries that
the MPI library requires.
This function supports only third-party schedulers.
To supply an alternative MPI implementation, create a file with the name
mpiLibConf
and the .m extension, and place it on the MATLAB® path. The recommended location is
. Your
matlabroot
/toolbox/parallel/usermpiLibConf
file must be higher on the path of the cluster workers than
. Setting
matlabroot
/toolbox/parallel/mpimpiLibConf
as a file dependency for this purpose does not work. After
your mpiLibConf
file is in place, update the toolbox path caching by
running this command in the MATLAB Command Window.
rehash toolboxcache
Examples
Output Arguments
Tips
The MPI library must support all MPI-1 functions. Additionally, the MPI library must
support null arguments to MPI_Init
, as defined in section 4.2 of the MPI-2
standard. The library must also use an mpi.h
header file that is fully
compatible with MPICH2.
You must launch the workers using the version of mpiexec
that
corresponds to the MPI library you are using. You often need to launch the corresponding
process management daemons on the cluster before calling mpiexec
.
Version History
Introduced before R2006a
See Also
Topics
- Use Different MPI Builds on UNIX Systems (MATLAB Parallel Server)
- Toolbox Path Caching in MATLAB