Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workaround for MPI/UCX environment #196

Merged
merged 1 commit into from
Jul 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions mpi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,6 @@ If the host MPI is Open MPI, the definition file looks like:
export PATH="$OMPI_DIR/bin:$PATH"
export LD_LIBRARY_PATH="$OMPI_DIR/lib:$LD_LIBRARY_PATH"
export MANPATH="$OMPI_DIR/share/man:$MANPATH"
# Work around a problem that UCX has with unprivileged user namespaces
# See https://github.com/apptainer/apptainer/issues/769
export UCX_POSIX_USE_PROC_LINK=n

%post
echo "Installing required packages..."
Expand Down Expand Up @@ -248,6 +245,18 @@ If the host MPI is Open MPI, the definition file looks like:
Consult your system documentation, or ask your support staff for
details.

.. note::

The MPI UCX library has a problem with unprivileged user namespaces.
See `apptainer issue 769
<https://github.com/apptainer/apptainer/issues/769 >`__
for details and for now use the ``UCX_TLS=sysv,ib`` transport as a
workaround, for example:

.. code::

mpirun -np 2 -mca pml ucx -x UCX_TLS=sysv,ib apptainer exec $MY_CONTAINER ./a.out

Running an MPI Application
==========================

Expand Down