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

Update docs on system-provided MPI including HDF5 #1706

Merged
merged 11 commits into from
Nov 21, 2023
27 changes: 14 additions & 13 deletions docs/src/parallelization.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,23 +53,24 @@ a system-provided MPI installation with Trixi.jl can be found in the following s

### [Using a system-provided MPI installation](@id parallel_system_MPI)

When using Trixi.jl with a system-provided MPI backend the underlying
[`p4est`](https://github.com/cburstedde/p4est) and [`t8code`](https://github.com/DLR-AMR/t8code)
libraries need to be compiled with the same MPI installation. Therefore, you also need to
use system-provided `p4est` and `t8code` installations (for notes on how to install `p4est`
and `t8code` see e.g. [here](https://github.com/cburstedde/p4est/blob/master/README) and
[here](https://github.com/DLR-AMR/t8code/wiki/Installation), use the configure option
When using Trixi.jl with a system-provided MPI backend, the underlying
[`p4est`](https://github.com/cburstedde/p4est), [`t8code`](https://github.com/DLR-AMR/t8code)
and [`hdf5`](https://github.com/HDFGroup/hdf5) libraries need to be compiled with the same MPI
installation. Therefore, you also need to use system-provided `p4est`, `t8code` and `hdf5` installations
(for notes on how to install `p4est` and `t8code` see e.g. [here](https://github.com/cburstedde/p4est/blob/master/README)
and [here](https://github.com/DLR-AMR/t8code/wiki/Installation), use the configure option
JoshuaLampert marked this conversation as resolved.
Show resolved Hide resolved
`--enable-mpi`). Note that `t8code` already comes with a `p4est` installation, so it suffices
to install `t8code`. In addition, [P4est.jl](https://github.com/trixi-framework/P4est.jl) and
[T8code.jl](https://github.com/DLR-AMR/T8code.jl) need to be configured to use the custom
installations. Follow the steps described
[here](https://github.com/DLR-AMR/T8code.jl/blob/main/README.md#installation) and
[here](https://github.com/trixi-framework/P4est.jl/blob/main/README.md#installation) for the
configuration. The paths that point to `libp4est.so` (and potentially to `libsc.so`) need to be
to install `t8code`. In addition, [P4est.jl](https://github.com/trixi-framework/P4est.jl),
[T8code.jl](https://github.com/DLR-AMR/T8code.jl) and [HDF5.jl](https://github.com/JuliaIO/HDF5.jl)
need to be configured to use the custom installations. Follow the steps described
[here](https://github.com/DLR-AMR/T8code.jl/blob/main/README.md#installation),
[here](https://github.com/trixi-framework/P4est.jl/blob/main/README.md#installation) and
[here](https://trixi-framework.github.io/Trixi.jl/stable/parallelization/#Using-parallel-input-and-output)
for the configuration. The paths that point to `libp4est.so` (and potentially to `libsc.so`) need to be
JoshuaLampert marked this conversation as resolved.
Show resolved Hide resolved
the same for P4est.jl and T8code.jl. This could e.g. be `libp4est.so` that usually can be found
in `lib/` or `local/lib/` in the installation directory of `t8code`.
In total, in your active Julia project you should have a LocalPreferences.toml file with sections
JoshuaLampert marked this conversation as resolved.
Show resolved Hide resolved
`[MPIPreferences]`, `[T8code]` and `[P4est]` as well as an entry `MPIPreferences` in your
`[MPIPreferences]`, `[T8code]`, `[P4est]` and `[HDF5]` as well as an entry `MPIPreferences` in your
Project.toml to use a custom MPI installation. A `LocalPreferences.toml` file
JoshuaLampert marked this conversation as resolved.
Show resolved Hide resolved
created as described above might look something like the following:
```toml
Expand Down
Loading