Skip to content

Commit 3b6c6a1

Browse files
Add information about building with non-system MPIs (#4698)
--------- Co-authored-by: Josh Hope-Collins <[email protected]>
1 parent d434426 commit 3b6c6a1

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/source/install.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,17 @@ For the default build, running ``firedrake-configure`` with
170170
.. literalinclude:: petsc_configure_options.txt
171171
:language: text
172172

173+
.. note::
174+
If you install MPI through PETSc by passing ``--download-openmpi`` or
175+
``--download-mpich`` it is helpful to run the command::
176+
177+
$ export PATH=$PETSC_DIR/$PETSC_ARCH:$PATH
178+
179+
180+
where ``PETSC_DIR=/path/to/petsc`` and ``PETSC_ARCH=arch-firedrake-default``.
181+
This will allow the MPI executables (``mpicc``, ``mpiexec``, etc) installed by
182+
PETSc to be found before any other versions installed on your machine.
183+
173184

174185
.. _install_firedrake:
175186

@@ -224,6 +235,11 @@ install Firedrake. To do this perform the following steps:
224235
you have exactly followed the instructions up to this point this should
225236
already be the case.
226237

238+
.. note::
239+
If you are using a non-system MPI it may be necessary to set ``LD_LIBRARY_PATH``
240+
so that it can be detected by mpi4py. See `here <https://mpi4py.readthedocs.io/en/stable/install.html#linux>`__
241+
for more information.
242+
227243
#. Install Firedrake::
228244

229245
$ pip install --no-binary h5py 'firedrake[check]'

0 commit comments

Comments
 (0)