Docs: MPI as Root (#6156)

New versions of OpenMPI need `--allow-run-as-root` for
running as root:
  http://www.open-mpi.de/doc/v2.0/man1/mpirun.1.php#toc22
This commit is contained in:
Axel Huebl 2017-11-06 22:03:46 +01:00 committed by Todd Gamblin
parent dc78e60c83
commit 54bb28ccb0

View File

@ -1208,6 +1208,9 @@ MPI
Due to the dependency on Fortran for OpenMPI, which is the spack default Due to the dependency on Fortran for OpenMPI, which is the spack default
implementation, consider adding ``gfortran`` to the ``apt-get install`` list. implementation, consider adding ``gfortran`` to the ``apt-get install`` list.
Recent versions of OpenMPI will require you to pass ``--allow-run-as-root``
to your ``mpirun`` calls if started as root user inside Docker.
For execution on HPC clusters, it can be helpful to import the docker For execution on HPC clusters, it can be helpful to import the docker
image into Singularity in order to start a program with an *external* image into Singularity in order to start a program with an *external*
MPI. Otherwise, also add ``openssh-server`` to the ``apt-get install`` list. MPI. Otherwise, also add ``openssh-server`` to the ``apt-get install`` list.