3%> on the internal ParaMonte shared libraries naming conventions.<br>
5%> \param[in]
name : The output scalar MATLAB
string containing the MPI
6%> library
name corresponding to the output MPI ``
vendor``.<br>
7%> If the input ``
name`` is not supported, the
default
8%>
string ``
"mpi"`` is returned as the value of ``str``.<br>
9%> Possible values are:<br>
11%> <li> ``
"mpi"`` : The corresponding output
vendor name ``txt`` would be unknown and set to ``
"MPI"``.<br>
12%> <li> ``
"impi"`` : The corresponding output
vendor name ``txt`` would be set to ``
"Intel"``.<br>
13%> <li> ``
"mpich"`` : The corresponding output
vendor name ``txt`` would be set to ``
"MPICH"``.<br>
14%> <li> ``
"openmpi"`` : The corresponding output
vendor name ``txt`` would be set to ``
"OpenMPI"``.<br>
16%> Note that **all values are
case-insensitive**.<br>
19%> ``str`` : The output scalar MATLAB string, containing the MPI
20%> library
vendor name supported by the ParaMonte library.<br>
21%> Possible values are:<br>
23%> <li> ``
"MPI"``, representing an unknown MPI library
vendor.
24%> <li> ``
"Intel"``, representing the Intel MPI library
vendor.
25%> <li> ``
"MPICH"``, representing the MPICH MPI library
vendor.
26%> <li> ``
"OpenMPI"``, representing the OpenMPI library
vendor.
32%> str = pm.lib.mpi.vendor(
name)
37%> [pm.lib.mpi.name()](@ref
name)<br>
38%> [pm.lib.mpi.vendor()](@ref
vendor)<br>
39%> [pm.sys.path.mpiexec.vendor()](@ref
vendor)<br>
42%> \include{lineno} example/
lib/mpi/
vendor/main.m
44%> \include{lineno} example/
lib/mpi/
vendor/main.out.m
49%> \JoshuaOsborne, May 21 2024, 7:20 PM, University of Texas at Arlington<br>
50%> \FatemehBagheri, May 20 2024, 1:25 PM, NASA Goddard Space Flight Center (GSFC), Washington, D.C.<br>
51%> \AmirShahmoradi, May 16 2016, 9:03 AM, Oden Institute
for Computational Engineering and Sciences (ICES), UT Austin<br>
57 help(
"pm.lib.mpi.vendor");
61 +
"The input argument ``name`` must be present and non-empty." + newline ...
62 +
"For more information, see the documentation displayed above." + newline ...
66 nameLower = lower(
string(
name));
67 for i = length(nameLower) : -1 : 1
68 if strcmp(nameLower(i),
"openmpi") || strcmp(nameLower(i),
"open-mpi") || strcmp(nameLower(i),
"ompi")
70 elseif strcmp(nameLower(i),
"mpich") || strcmp(nameLower(i),
"mmpi")
72 elseif strcmp(nameLower(i), "intel") || strcmp(nameLower(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...