ParaMonte MATLAB 3.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation.
parallel.m
Go to the documentation of this file.
1%> \brief
2%> Return a scalar MATLAB logical that is ``true`` if and
3%> only if the current installation of MATLAB contains
4%> the MATLAB Parallel Computing Toolbox.
5%>
6%> \details
7%> This function searches the MATLAB license
8%> for an installation of the Parallel Computing Toolbox.
9%> If the search fails, a parallel code section will be tested.
10%>
11%> \return
12%> ``hasit`` : The output scalar MATLAB logical that is ``true`` if and
13%> only if the current installation of MATLAB contains
14%> the required MATLAB Toolbox.
15%>
16%> \interface{parallel}
17%> \code{.m}
18%>
19%> hasit = pm.matlab.has.parallel();
20%>
21%> \endcode
22%>
23%> \example{parallel}
24%> \include{lineno} example/matlab/has/main.m
25%> \output{parallel}
26%> \include{lineno} example/matlab/has/main.out.m
27%>
28%> \final{parallel}
29%>
30%> \author
31%> \JoshuaOsborne, May 21 2024, 10:33 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 hasit = parallel()
35 hasit = license('test', 'Distrib_Computing_Toolbox');
36 if ~hasit
37 try
38 delete(gcp('nocreate'));
39 hasit = true;
40 end
41 end
42end
function parallel()
Return a scalar MATLAB logical that is true if and only if the current installation of MATLAB contain...