ParaMonte MATLAB 3.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation. |
Go to the source code of this file.
Functions | |
function | isimpi () |
Return true if and only if the application has been invoked via an Intel MPI mpiexec launcher, otherwise, return false .More... | |
function isimpi | ( | ) |
Return true
if and only if the application has been invoked via an Intel MPI mpiexec
launcher, otherwise, return false
.
This function attempts to detect the invocation of the current MATLAB session via an Intel MPI mpiexec
binary MPI launcher instance.
The runtime detection is achieved by checking for runtime environment variables that the Intel MPI mpiexec
binary executable defines upon launch.
Specifically, Intel MPI provides a long informal list of environment variables that are defined on every MPI process.
These variables may not be defined on all platforms.
Some are only defined at runtime, while others are defined at compile-time.
mpiexec
binary executable with the printenv
Unix command.mpiexec
binary executable with the set
Windows batch command.Note that all Intel-MPI-specific environment variables are prefixed with I_MPI_
.
The most persistent environment variables for Intel mpiexec
binary appear to be the following:
I_MPI_INFO_STATE
: The status code for the Intel MPI runtime (e.g., 0
).I_MPI_INFO_BRAND
: The processor brand (e.g., 12th Gen Intel(R) Core(TM) i9-12950HX
).Therefore, this function attempts to detect the above runtime environment variables.
itis
: The output scalar MATLAB logical
that is true
if and only if the application has been invoked via an Intel MPI mpiexec
launcher, otherwise, return false
.
Possible calling interfaces ⛓
Example usage ⛓
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.
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.