As stated in the question, what is the command that lists the current version of MPICH? I am running CentOS.
相关问题
- About MPI_Reduce
- Boost MPI doesn't free resources when listenin
- Kill an mpi process
- Detecting not using MPI when running with mpirun/m
- CMake: set path to MPI headers and binaries manual
Well for me it was
mpicc -v
HTH
The command you run to start your application with MPICH is
mpiexec
, so the way to check the version is:There is a string called MPICH_VERSION in mpi.h that is set to the version. Cray, for example, provides their own application launcher so there isn't the standard set of executables already mentioned for querying the MPICH version.
I find that
mpichversion
, which is found in the directory asmpicc
, provides very useful information. For example, on my laptop, it displays:Note that I reformatted the output slightly (I added whitespace, nothing else) so that it would fit nicely into the fixed column format without requiring a slider.
Note that this provides less information than the previously suggested
mpiexec --version
, but the configure flags are given in a slightly less useful format, at least for my purposes (copy-and-paste into new configure invocation).(I did not reformat this output.)
One benefit of
mpichversion
is that, because it is specific to MPICH (and possibly some MPICH derivatives), you can write a more specific parser for it. I do not know what, if any, information is available frommpiexec --version
for OpenMPI or other non-MPICH MPI implementations.Depending on your rights, you can check
yum
(orsudo yum
):shows the relevant section on my machine.
Repo : base
would beRepo : installed
for the version you have installed.Or you can check
mpirun
ormpiexec
: