In order to cope with changes to the MPI Standard, there are both compile-time and run-time ways to determine which version of the standard is in use in the environment one is using.
The ``version'' will be represented by two separate integers, for the version and subversion: In C and C++,
in Fortran,
For runtime determination,
MPI_GET_VERSION( version, subversion ) | |
OUT version | version number (integer) |
OUT subversion | subversion number (integer) |
int MPI_Get_version(int *version, int *subversion)
MPI_GET_VERSION(VERSION, SUBVERSION, IERROR)
MPI_GET_VERSION is one of the few functions that can be called
before MPI_INIT and after MPI_FINALIZE.
Valid ( MPI_VERSION, MPI_SUBVERSION) pairs in
this and previous versions of the MPI standard are
(2,2), (2,1), (2,0), and (1,2).
INTEGER VERSION, SUBVERSION, IERROR
{ void MPI::Get_version(int& version, int& subversion) (binding deprecated, see Section Deprecated since MPI-2.2
) }
Up: Implementation Information
Next: Environmental Inquiries
Previous: Implementation Information
Return to MPI-2.2 Standard Index
Return to MPI Forum Home Page
(Unofficial) MPI-2.2 of September 4, 2009
HTML Generated on September 10, 2009