Skip to content

Commit

Permalink
Put back UUID example of setting custom hdf5 binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
johnomotani authored Sep 8, 2023
1 parent af086d1 commit b333081
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,17 @@ set_preferences!(
"libhdf5_hl" => "/usr/lib/x86_64-linux-gnu/hdf5/mpich/libhdf5_hl.so", force = true)
```

If HDF5 cannot be loaded, it may be useful to use the UUID to change these settings:

```julia
using Preferences, UUIDs

set_preferences!(
UUID("f67ccb44-e63f-5c2f-98bd-6dc0ccc4ba2f"), # UUID of HDF5.jl,
"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)
```

Also see the file `test/configure_packages.jl` for an example.

Both, the MPI preferences and the preferences for HDF5.jl write to a file called LocalPreferences.toml in the project directory. After performing the described steps this file could look like the following:
Expand Down

0 comments on commit b333081

Please sign in to comment.