ParaMonte MATLAB 3.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation.
choices.m
Go to the documentation of this file.
1%> \brief
2%> Return the ParaMonte-preferred MPI library vendor name(s)
3%> as used in naming the ParaMonte MATLAB shared libraries
4%> in the order of preference on the current platform.
5%>
6%> \note
7%> Only the default (first) MPI library name is guaranteed to be
8%> supported in any pre-built distribution of the ParaMonte library.
9%>
10%> \return
11%> names : The output vector of MATLAB strings containing the
12%> the ParaMonte-preferred MPI library vendor names as
13%> used in naming the ParaMonte MATLAB shared libraries.
14%> in the default order of preference.
15%>
16%> \interface{choices}
17%> \code{.m}
18%>
19%> names = pm.lib.mpi.choices()
20%>
21%> \endcode
22%>
23%> \example{choices}
24%> \include{lineno} example/lib/mpi/choices/main.m
25%> \output{choices}
26%> \include{lineno} example/lib/mpi/choices/main.out.m
27%>
28%> \final{choices}
29%>
30%> \author
31%> \JoshuaOsborne, May 21 2024, 7:18 PM, University of Texas at Arlington<br>
32%> \FatemehBagheri, May 20 2024, 1:25 PM, NASA Goddard Space Flight Center (GSFC), Washington, D.C.<br>
33%> \AmirShahmoradi, May 16 2016, 9:03 AM, Oden Institute for Computational Engineering and Sciences (ICES), UT Austin<br>
34function names = choices()
35 if ispc()
36 names = "impi";
37 elseif pm.os.is.lin()
38 names = ["impi", "mpich", "openmpi"];
39 elseif ismac()
40 names = ["openmpi", "mpich"];
41 end
42end
function name(in vendor)
Return the MPI library name as used in naming the ParaMonte MATLAB shared libraries.
function choices()
Return the ParaMonte-preferred MPI library vendor name(s) as used in naming the ParaMonte MATLAB shar...
function lib()
Return a scalar MATLAB string containing the path to the lib directory of the ParaMonte library packa...
function lin()
Return true if the current OS is Linux.
function vendor(in path)
Return the a MATLAB string containing the MPI library vendor name corresponding to the input mpiexec ...