Skip to content

FindMPI: Documentation and MPIEXEC improvements

Christian Pfeiffer requested to merge ChrisTX/cmake:findmpi-improvements into master

This MR

  • modernizes the documentation of FindMPI to current standards
  • corrects the default flag for MPIEXEC_NUMPROC_FLAG from -np to -n, which is the flag given by the MPI standard, that any implementation having an mpiexec program must implement.
  • Documents MPIEXEC_MAX_NUMPROCS and makes it default to the number of processors of the host instead of the hardcoded value 2. This way it's useful in some sense and can be used for CTest and the likes.

Merge request reports