I just committed in https://svn.open-mpi.org/trac/ompi/changeset/25860 the new MPI-3 function MPI_GET_LIBRARY_VERSION (it's been voted in to MPI-3).
Below shows what the string will return in various types of Open MPI distributions. Suggestions are welcome to change the content (i.e., feel free to edit ompi/mpi/c/get_library_version.c :-) ). The intent is that users can submit this string to us with bug reports, etc. It's a good way to ensure that the version of OMPI that you're running with is the version that you actually think you're running (e.g., if you have your LD_LIBRARY_PATH set wrong). FWIW: this function isn't as valuable to Open MPI as it is to other MPI implementations (e.g., those that don't have an ompi_info-type of tool). ----- Developer checkout: Open MPI v1.7a1, package: Open MPI jsquyres@svbu-mpi063 Distribution, ident: 1.7a1r12345, repo rev: r12345, Unreleased developer copy make dist from developer checkout: Open MPI v1.7a1, package: Open MPI jsquyres@svbu-mpi063 Distribution, ident: 1.7a1, Unreleased developer copy Greek tarball: Open MPI v1.7a1, package: Open MPI jsquyres@svbu-mpi063 Distribution, ident: 1.7a1, repo rev: rexported, Feb 02, 2012 Release tarball: Open MPI v1.7, package: Open MPI jsquyres@svbu-mpi063 Distribution, ident: 1.7, repo rev: rexported, Feb 02, 2012 Nightly tarball: Open MPI v1.7a1, package: Open MPI jsquyres@svbu-mpi063 Distribution, ident: 1.7a1r12345, repo rev: r12345, Unreleased developer copy -- Jeff Squyres jsquy...@cisco.com For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/