How do you check the version of OpenMPI?

Zak picture Zak · Apr 7, 2012 · Viewed 54k times · Source

I'm compiling my code on a server that has OpenMPI, but I need to know which version I'm on so I can read the proper documentation. Is there a constant in <mpi.h> that I can print to display my current version?

Answer

Foad picture Foad · Jan 26, 2018

As explained in this tutorial, you may also check the MPI version running the command:

mpiexec --version

or

mpirun --version

in your terminal.