Open MPI logo

MPI_Get_version(3) man page (version 5.0.0rc2)

  |   Home   |   Support   |   FAQ   |  

« Return to documentation listing

Table of Contents

Name

C]MPI_Get_versionR] - Returns the version of the standard corresponding to the current implementation.

Syntax

C Syntax



C]#include <mpi.h>int MPI_Get_version(int *version, int *subversion)R]Fortran Syntax



C]USE MPI! or the older form: INCLUDE [aq]mpif.h[aq]MPI_GET_VERSION(VERSION, SUBVERSION, IERROR) INTEGER VERSION, SUBVERSION, IERRORR]Fortran 2008 Syntax



C]USE mpi_f08MPI_Get_version(version, subversion, ierror) INTEGER, INTENT(OUT) :: version, subversion INTEGER, OPTIONAL, INTENT(OUT) :: ierrorR]Output Parameters

[bu]
C]versionR] : The major version number of the corresponding standard (integer).
[bu]
C]subversionR] : The minor version number of the corresponding standard (integer).
[bu]
C]IERRORR] : Fortran only: Error status (integer).

Description

Since Open MPI is MPI 3.1 compliant, this function will return a C]versionR] value of 3 and a subversion value of 1 for this release.

Note

C]MPI_Get_versionR] is one of the few functions that can be called before C]MPI_InitR] and after C]MPI_FinalizeR].

Errors

Almost all MPI routines return an error value; C routines as the value of the function and Fortran routines in the last argument.

Before the error value is returned, the current MPI error handler is called. By default, this error handler aborts the MPI job, except for I/O function errors. The error handler may be changed with C]MPI_Comm_set_errhandlerR]; the predefined error handler C]MPI_ERRORS_RETURNR] may be used to cause error values to be returned. Note that MPI does not guarantee that an MPI program can continue past an error.


Table of Contents

« Return to documentation listing