2%> Return the MPI library
name as used in
3%> naming the ParaMonte MATLAB shared library directories.<br>
5%> \param[in]
vendor : The input scalar MATLAB string, containing the MPI
6%> library
vendor supported by the ParaMonte library.<br>
7%> Possible values are:<br>
9%> <li> ``
"Intel"``, representing the Intel MPI library.
10%> <li> ``
"MPICH"``, representing the MPICH MPI library.
11%> <li> ``
"OpenMPI"``, representing the OpenMPI library.
13%> Note that **all values are
case-insensitive**.<br>
16%> ``str`` : The output scalar MATLAB
string containing the MPI
17%> library
name corresponding to the input MPI ``
vendor``.<br>
18%> If the input ``
vendor`` is not supported, the
default
19%>
string ``
"mpi"`` is returned as the value of ``str``.<br>
24%> str = pm.lib.mpi.name(
vendor)
29%> [pm.lib.mpi.name()](@ref
name)<br>
30%> [pm.lib.mpi.vendor()](@ref
vendor)<br>
31%> [pm.sys.path.mpiexec.vendor()](@ref
vendor)<br>
34%> \include{lineno} example/
lib/mpi/
name/main.m
36%> \include{lineno} example/
lib/mpi/
name/main.out.m
41%> \JoshuaOsborne, May 21 2024, 7:20 PM, University of Texas at Arlington<br>
42%> \FatemehBagheri, May 20 2024, 1:25 PM, NASA Goddard Space Flight Center (GSFC), Washington, D.C.<br>
43%> \AmirShahmoradi, May 16 2016, 9:03 AM, Oden Institute
for Computational Engineering and Sciences (ICES), UT Austin<br>
49 help(
"pm.lib.mpi.name");
53 +
"The input argument ``vendor`` must be present and non-empty." + newline ...
54 +
"For more information, see the documentation displayed above." + newline ...
58 vendorLower = lower(
string(
vendor));
59 for i = length(vendorLower) : -1 : 1
60 if strcmp(vendorLower(i),
"openmpi") || strcmp(vendorLower(i),
"open-mpi") || strcmp(vendorLower(i),
"ompi")
62 elseif strcmp(vendorLower(i),
"mpich") || strcmp(vendorLower(i),
"mmpi")
64 elseif strcmp(vendorLower(i), "intel") || strcmp(vendorLower(i), "
impi")
function name(in vendor)
Return the MPI library name as used in naming the ParaMonte MATLAB shared library directories.
function vendor(in name)
Return the MPI library vendor name from the input MPI name based on the internal ParaMonte shared lib...
function impi()
Return the MPI image count and the current image ID (e.g., MPI rank + 1) if the application has been ...
function lib()
Return a scalar MATLAB string containing the path to the lib directory of the ParaMonte library packa...