Use local dynamic libraries rather than jll binaries#235
Merged
Conversation
We now have 2 options:
# Option 1: point directly to your library (sets libs AND skips JLL)
export JULIA_PETSC_LIBRARY=/path/to/libpetsc.so
# Option 2: skip JLL, then use set_petsclib() in your script
export JULIA_PETSC_SKIP_JLL=1
With option 2, getlib() won't work (no libs registered), but set_petsclib("/path/to/libpetsc.so") gives you full control over scalar/int types.
export JULIA_PETSC_LIBRARY=/path/to/libpetsc.so export JULIA_PETSC_SCALAR=Float64 # Float32 | ComplexFloat64 | ComplexFloat32 export JULIA_PETSC_INT=Int64 # Int32
Member
|
I always find environment variables a bit fragile. For LAMMPS.jl I provided a solution using preferences. |
Collaborator
Author
|
thanks! Trying that instead now. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
By default, we use PETSc_jll binaries.
In some cases, you may instead want to use your own, locally, compiled version of PETSc, for example because you configured it with GPU support, or because you want additional external packages that we don't provide.
With this PR you can configure them as:
export JULIA_PETSC_LIBRARY=/path/to/libpetsc.soif your library is compiled with 64bit indices and for Float64, this will do the job.
For other choices, you should also provide: