SciML / LinearSolve.jl

LinearSolve.jl: High-Performance Unified Interface for Linear Solvers in Julia. Easily switch between factorization and Krylov methods, add preconditioners, and all in one interface.
https://docs.sciml.ai/LinearSolve/stable/
Other
248 stars 53 forks source link

Avoid (unconditional) precompiling of code that has GPL dependecies #224

Closed andreasnoack closed 1 year ago

andreasnoack commented 2 years ago

If a user would like to run with a non-GPL version of Julia then precompilation would probably fail because of https://github.com/SciML/LinearSolve.jl/blob/0a3d5ba2f6db5894a13ae8cce717714bdcadf2e4/src/LinearSolve.jl#L64-L68 so it would be useful to make those lines conditional on inclusion of the sparse libraries.

ChrisRackauckas commented 2 years ago

We can set that up with Preferences like OrdinaryDiffEq

DilumAluthge commented 1 year ago

Okay, #238 now uses Preferences. If the user does not specify the preference, we default to the value of Base.USE_GPL_LIBS.