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

Use of HSL linear solvers in Uno #44

Closed
amontoison opened this issue Oct 24, 2024 · 1 comment
Closed

Use of HSL linear solvers in Uno #44

amontoison opened this issue Oct 24, 2024 · 1 comment
Assignees
Labels

Comments

@amontoison
Copy link
Contributor

amontoison commented Oct 24, 2024

I suggest to split the detection of libraries related to HSL linear solvers.
Right now, only MA57 is interfaced, but if more solvers are added, we want something like this:

if findlibrary(hsl)
  ... # compile all HSL interfaces
else
  if findlibrary(ma57)
    ... # compile the interface for MA57
  endif
  if findlibrary(ma27)
    ... # compile the interface for MA27
  endif
endif

This way, we can also determine if we explicitly linked with libHSL, and thus decide whether or not we can use the routine LIBHSL_isfunctional to ensure at runtime that HSL solvers are available.
This is particularly relevant for Julia users, where Uno is always compiled with a "dummy" version of libHSL.
It allows them to easily switch to the HSL solvers if they can install the official libHSL (like academic users) with HSL_jll.jl.

@cvanaret
Copy link
Owner

Implemented in commit 20e0b2c.

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

No branches or pull requests

2 participants