From 54bb28ccb080c396f7947c6bf294b67f55b8b629 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Mon, 6 Nov 2017 22:03:46 +0100 Subject: 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 --- lib/spack/docs/workflows.rst | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/spack/docs/workflows.rst b/lib/spack/docs/workflows.rst index 7e6b32b866..140c0e5649 100644 --- a/lib/spack/docs/workflows.rst +++ b/lib/spack/docs/workflows.rst @@ -1208,6 +1208,9 @@ MPI Due to the dependency on Fortran for OpenMPI, which is the spack default 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 image into Singularity in order to start a program with an *external* MPI. Otherwise, also add ``openssh-server`` to the ``apt-get install`` list. -- cgit v1.2.3-70-g09d2