Skip to content
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

Merged
merged 11 commits into from
Jul 18, 2024

Conversation

martinjrobins
Copy link

The SunLinSolKLU solver in sundials requires the following libraries:

  • sundials_sunlinsolklu from sundials
  • klu, suitesparseconfig, colamd, klu, btf, and amd from suitesparse

This adds these libraries to rustc-link-lib, and adds the suitesparse lib dir to the link search path

@martinjrobins
Copy link
Author

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"] }
Copy link
Owner

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:

Copy link
Author

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

@Chris00 Chris00 merged commit 5cc86c7 into Chris00:master Jul 18, 2024
8 checks passed
@Chris00
Copy link
Owner

Chris00 commented Jul 18, 2024

Thanks for your work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants