Skip to content

Commit 1a92fa4

Browse files
committed
Added a documentation note regarding possible issues with mpi4py being bound to Mpich and not Openmpi
1 parent c55963a commit 1a92fa4

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

‎doc/user_guides/ensembles.rst‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,27 @@ components within each running ensemble instance:
366366
(assuming one core per MPI process). For example, two concurrent four-process
367367
tasks need a budget of at least eight cores per instance.
368368

369+
.. note::
370+
371+
Python MPI tasks must use an ``mpi4py`` installation linked to the MPI
372+
implementation used by the launcher. An ``mpi4py`` package
373+
linked to MPICH can cause every process launched by Open MPI's ``prun`` to
374+
report rank 0 in an ``MPI.COMM_WORLD`` of size 1 even though the user
375+
requested multiple ranks.
376+
377+
If you encounter this symptom, check the library loaded by the Python
378+
environment used for the task:
379+
380+
.. code-block:: bash
381+
382+
python -c 'from mpi4py import MPI; print(MPI.Get_library_version())'
383+
384+
In the affected environment, rebuilding and reinstalling ``mpi4py`` from
385+
source after loading the ``openmpi`` module and setting
386+
``MPICC="$(which mpicc)"`` will resolve this issue. Verify that the rebuilt
387+
package reports Open MPI, and rerun a multi-rank task to confirm that its
388+
communicator has the requested size and distinct ranks.
389+
369390
Portal
370391
------
371392

0 commit comments

Comments
 (0)