ParaMonte MATLAB 3.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation.
choice.m
Go to the documentation of this file.
1%> \brief
2%> Return the ParaMonte-preferred MPI library vendor name
3%> as used in naming the ParaMonte MATLAB shared libraries.
4%>
5%> \details
6%> Support for the output MPI library name by this
7%> routine is guaranteed on the current platform.
8%>
9%> \return
10%> ``name`` : The output scalar MATLAB string containing the
11%> the ParaMonte-preferred MPI library vendor name as
12%> used in naming the ParaMonte MATLAB shared libraries.<br>
13%>
14%> \interface{choice}
15%> \code{.m}
16%>
17%> name = pm.lib.mpi.choice()
18%>
19%> \endcode
20%>
21%> \example{choice}
22%> \include{lineno} example/lib/mpi/choice/main.m
23%> \output{choice}
24%> \include{lineno} example/lib/mpi/choice/main.out.m
25%>
26%> \final{choice}
27%>
28%> \author
29%> \JoshuaOsborne, May 21 2024, 7:16 PM, University of Texas at Arlington<br>
30%> \FatemehBagheri, May 20 2024, 1:25 PM, NASA Goddard Space Flight Center (GSFC), Washington, D.C.<br>
31%> \AmirShahmoradi, May 16 2016, 9:03 AM, Oden Institute for Computational Engineering and Sciences (ICES), UT Austin<br>
32function name = choice()
33 if ispc() || pm.os.is.lin()
34 name = "impi";
35 elseif ismac()
36 name = "openmpi";
37 end
38end
function name(in vendor)
Return the MPI library name as used in naming the ParaMonte MATLAB shared libraries.
function choice()
Return the ParaMonte-preferred MPI library vendor name as used in naming the ParaMonte MATLAB shared ...
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 ...