From 67bd91234151095aa425bbd78d1ef1202cd6a91c Mon Sep 17 00:00:00 2001 From: Jesse Chan <1156048+jlchan@users.noreply.github.com> Date: Thu, 5 Oct 2023 17:46:39 -0500 Subject: [PATCH 1/2] Add example LocalPreferences.toml file to parallelization.md --- docs/src/parallelization.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/src/parallelization.md b/docs/src/parallelization.md index 610aa2cbd95..c914d2e8524 100644 --- a/docs/src/parallelization.md +++ b/docs/src/parallelization.md @@ -70,7 +70,9 @@ 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. An example LocalPreferences.toml file +can be found [here](https://gist.github.com/jlchan/cb5932258c1eceaa7ff34ef6bcc84d17). + ### [Usage](@id parallel_usage) From d8b9250240bede796cf3172d9ce23ef206484238 Mon Sep 17 00:00:00 2001 From: Jesse Chan <1156048+jlchan@users.noreply.github.com> Date: Sat, 21 Oct 2023 13:09:50 -0500 Subject: [PATCH 2/2] Update docs/src/parallelization.md Co-authored-by: Michael Schlottke-Lakemper --- docs/src/parallelization.md | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/docs/src/parallelization.md b/docs/src/parallelization.md index c914d2e8524..fa6fc1a5d32 100644 --- a/docs/src/parallelization.md +++ b/docs/src/parallelization.md @@ -70,9 +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. An example LocalPreferences.toml file -can be found [here](https://gist.github.com/jlchan/cb5932258c1eceaa7ff34ef6bcc84d17). - +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)