summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Huebl <axel.huebl@plasma.ninja>2017-11-06 22:03:46 +0100
committerTodd Gamblin <tgamblin@llnl.gov>2017-11-06 13:03:46 -0800
commit54bb28ccb080c396f7947c6bf294b67f55b8b629 (patch)
tree2075ad8e29bf10e01875f35999d79ed2f09871ac
parentdc78e60c837dc5b02c8e873d336ec9258bef0fca (diff)
downloadspack-54bb28ccb080c396f7947c6bf294b67f55b8b629.tar.gz
spack-54bb28ccb080c396f7947c6bf294b67f55b8b629.tar.bz2
spack-54bb28ccb080c396f7947c6bf294b67f55b8b629.tar.xz
spack-54bb28ccb080c396f7947c6bf294b67f55b8b629.zip
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
-rw-r--r--lib/spack/docs/workflows.rst3
1 files changed, 3 insertions, 0 deletions
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.