Skip to content

Commit

Permalink
Pass HDF5 module to set_preferences!() instead of UUID
Browse files Browse the repository at this point in the history
It is possible to pass a module to `set_preferences!()`, as an alternative to identifying the module by its UUID. This is easier to read or type, so better to suggest this method in the docs.
  • Loading branch information
johnomotani authored Sep 8, 2023
1 parent f5c7250 commit af086d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ MPIPreferences.use_system_binary()
to set the MPI preferences, see the [documentation of MPI.jl](https://juliaparallel.org/MPI.jl/stable/configuration/). You can set the path to the system library using [Preferences.jl](https://github.com/JuliaPackaging/Preferences.jl) by:

```julia
using Preferences, UUIDs
using Preferences, HDF5

set_preferences!(
UUID("f67ccb44-e63f-5c2f-98bd-6dc0ccc4ba2f"), # UUID of HDF5.jl
HDF5,
"libhdf5" => "/usr/lib/x86_64-linux-gnu/hdf5/mpich/libhdf5.so",
"libhdf5_hl" => "/usr/lib/x86_64-linux-gnu/hdf5/mpich/libhdf5_hl.so", force = true)
```
Expand Down

0 comments on commit af086d1

Please sign in to comment.