From 38404f1a65ae725dbfbcd252edc965e31f4f4cdc Mon Sep 17 00:00:00 2001 From: Jesse Chan <1156048+jlchan@users.noreply.github.com> Date: Sun, 22 Oct 2023 04:03:17 -0500 Subject: [PATCH] Add example LocalPreferences.toml file to parallelization.md (#1660) * Add example LocalPreferences.toml file to parallelization.md * Update docs/src/parallelization.md Co-authored-by: Michael Schlottke-Lakemper --------- Co-authored-by: Michael Schlottke-Lakemper --- docs/src/parallelization.md | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/docs/src/parallelization.md b/docs/src/parallelization.md index 610aa2cbd95..fa6fc1a5d32 100644 --- a/docs/src/parallelization.md +++ b/docs/src/parallelization.md @@ -70,7 +70,32 @@ the same for P4est.jl and T8code.jl. This could e.g. be `libp4est.so` that usual 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 `[MPIPreferences]`, `[T8code]` and `[P4est]` as well as an entry `MPIPreferences` in your -Project.toml to use a custom MPI installation. +Project.toml to use a custom MPI installation. A `LocalPreferences.toml` file +created as described above might look something like the following: +```toml +[HDF5] +libhdf5 = "/usr/lib/x86_64-linux-gnu/hdf5/openmpi/libhdf5.so" +libhdf5_hl = "/usr/lib/x86_64-linux-gnu/hdf5/openmpi/libhdf5_hl.so" + +[MPIPreferences] +__clear__ = ["preloads_env_switch"] +_format = "1.0" +abi = "OpenMPI" +binary = "system" +cclibs = [] +libmpi = "/lib/x86_64-linux-gnu/libmpi.so" +mpiexec = "mpiexec" +preloads = [] + +[P4est] +libp4est = "/home/mschlott/hackathon/libtrixi/t8code/install/lib/libp4est.so" +libsc = "/home/mschlott/hackathon/libtrixi/t8code/install/lib/libsc.so" + +[T8code] +libp4est = "/home/mschlott/hackathon/libtrixi/t8code/install/lib/libp4est.so" +libsc = "/home/mschlott/hackathon/libtrixi/t8code/install/lib/libsc.so" +libt8 = "/home/mschlott/hackathon/libtrixi/t8code/install/lib/libt8.so" +``` ### [Usage](@id parallel_usage)