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 | rankp1 (in vendor) |
Return the ID (MPI rank + 1) of the current MPI image (process), starting from the number one. More... | |
function rankp1 | ( | in | vendor | ) |
Return the ID (MPI rank + 1) of the current MPI image (process), starting from the number one.
Beware that this routine returns 1
for the MPI rank of the first process which is 0
.
This is the reason for the naming used for this function rankp1
standing for rank + 1
, consistent with the parallel ParaMonte library conventions across all supported programming languages.
This function can be used to automate the inclusion or exclusion of single-process activities within the ParaMonte library by creating a fence around the activities (e.g., visualization, or postprocessing tasks) to be done only by a specific (normally the first) parallel process.
See the documentation of pm.sampling.Paradram for example usage.
[in] | vendor | : See the corresponding argument of pm.lib.mpi.runtime.detect. (optional. The default is set by pm.lib.mpi.runtime.detect.) |
value
: The output MATLAB scalar positive whole-number containing the image (process) ID of the MPI processes launched by the mpiexec
.1
.
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.