-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
link against required libraries for klu
feature
#7
Conversation
Hi @Chris00. As an alternative to this PR, I've recently written a suitesparse_sys crate (https://crates.io/crates/suitesparse_sys) which handles everything, so sundials-sys could depend on this instead if that sounds better? |
Cargo.toml
Outdated
nvecopenmp = [] | ||
nvecpthreads = [] | ||
|
||
[dependencies] | ||
suitesparse_sys = { git = "https://github.com/martinjrobins/suitesparse-sys", optional = true, features = ["build_vendor"] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This cannot be merged for two reasons:
- crate.io does not allow packages to be published with dependencies on code published outside of crates.io itself;
build_vendor
should not be imposed on the user — if the library is present on his system, he may want to use that version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've published this crate now and removed build_vendor so it'll use the system suitesparse if possible
…parse_sys will take care of klu lib)
Thanks for your work! |
The SunLinSolKLU solver in sundials requires the following libraries:
sundials_sunlinsolklu
from sundialsklu
,suitesparseconfig
,colamd
,klu
,btf
, andamd
from suitesparseThis adds these libraries to
rustc-link-lib
, and adds the suitesparse lib dir to the link search path