ParaMonte MATLAB 3.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation.
verify.m File Reference

Go to the source code of this file.

Functions

function verify ()
 Verify the existence of the requirements of the installed ParaMonte MATLAB library. More...
 

Function Documentation

◆ verify()

function verify ( )

Verify the existence of the requirements of the installed ParaMonte MATLAB library.

This function takes no input arguments and returns nothing.

Returns
failed : The output scalar MATLAB logical that is true if and only if the ParaMonte library components verification fails.


Possible calling interfaces

failed = pm.lib.verify();


Example usage

1cd(fileparts(mfilename('fullpath'))); % Change working directory to source code directory.
2addpath('../../../'); % Add the ParaMonte library root directory to the search path.
3
4pm.lib.verify();
function root()
Return a scalar MATLAB string containing the root directory of the ParaMonte library package.

Example output
1Checking MATLAB version >2023a rquirement for compatibility with ParaMonte...PASSED
2Checking the system architecture compatibility with the ParaMonte library...PASSED
3Checking for the Intel MPI library installations. This may take a bit...
4 The following Intel ``mpiexec`` binaries were detected:
5 /mnt/c/Program Files (x86)/Intel/oneAPI/mpi/latest/bin/mpiexec.exe
6 /opt/intel/oneapi/mpi/latest/bin/mpiexec
7Checking for the MPICH MPI library installations. This may take a bit...
8 The following MPICH ``mpiexec`` binaries were detected:
9 /usr/bin/mpiexec.mpich
10Checking for the OpenMPI MPI library installations. This may take a bit...
11 The following OpenMPI ``mpiexec`` binaries were detected:
12 /usr/bin/mpiexec
13
14At least one MPI runtime library installation from vendors
15compatible with the ParaMonte library exists on your system.
16
17On Linux/macOS systems, launch the MPI-parallel ParaMonte
18simulation on the shell terminal via the following command:
19
20 mpiexec -n 3 matlab -batch "main"
21
22where,
23
24 1. ``mpiexec`` is the MPI launcher application.
25 2. ``-n 3`` specified three processes to be used for the MPI-parallel simulation.
26 3. ``matlab -batch`` launches the LANG_NAME software per MPI process on the command line.
27 5. ``main`` is the name of your script containing the ParaMonte library task to run in parallel.
28 Replace the script name with whatever the actual name of your script file is.
29 Notice the MATLAB filename `main` appears without the file extension.
30 Notice the MATLAB filename is enclosed with quotation marks.
31
32On Windows systems using the Intel MPI library, an additional ``-localonly`` flag is required:
33
34 mpiexec -localonly -n 3 matlab -batch "main"
35
36where,
37
38 1. ``-localonly`` indicates a parallel simulation on only a single node.
39 This flag will obviate the need for MPI library credentials registration.
40 For more information, visit the Intel MPI library website.
41
function name(in vendor)
Return the MPI library name as used in naming the ParaMonte MATLAB shared library directories.
function version(in silent)
Return a scalar MATLAB string containing the latest available ParaMonte MATLAB version newer than the...
function parallel()
Return a scalar MATLAB logical that is true if and only if the current installation of MATLAB contain...


Final Remarks


If you believe this algorithm or its documentation can be improved, we appreciate your contribution and help to edit this page's documentation and source file on GitHub.
For details on the naming abbreviations, see this page.
For details on the naming conventions, see this page.
This software is distributed under the MIT license with additional terms outlined below.

  1. If you use any parts or concepts from this library to any extent, please acknowledge the usage by citing the relevant publications of the ParaMonte library.
  2. If you regenerate any parts/ideas from this library in a programming environment other than those currently supported by this ParaMonte library (i.e., other than C, C++, Fortran, MATLAB, Python, R), please also ask the end users to cite this original ParaMonte library.

This software is available to the public under a highly permissive license.
Help us justify its continued development and maintenance by acknowledging its benefit to society, distributing it, and contributing to it.

Author:
Joshua Alexander Osborne, May 21 2024, 8:11 PM, University of Texas at Arlington