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

Display the version number of the linear solver in the logs #313

Closed
amontoison opened this issue Mar 23, 2024 · 2 comments · Fixed by #315
Closed

Display the version number of the linear solver in the logs #313

amontoison opened this issue Mar 23, 2024 · 2 comments · Fixed by #315

Comments

@amontoison
Copy link
Contributor

amontoison commented Mar 23, 2024

A possible enhancement will be to display the version number of the linear solver (if available).
The following header

This is MadNLP version v0.8.0, running with cuDSS

could be replaced by

This is MadNLP version v0.8.0, running with cuDSS v0.1.0
@sshin23
Copy link
Member

sshin23 commented Mar 25, 2024

I think we can simply include this info in introduce(::AbstractLinearSolver). E.g.,

introduce(::CHOLMODSolver) = "cholmod v$(SuiteSparse.CHOLMOD.BUILD_VERSION)"

@amontoison
Copy link
Contributor Author

For HSL linear solvers, I added a way to detemine the version number:
https://github.com/JuliaSmoothOptimizers/HSL.jl/blob/main/src/C/libhsl.jl#L29

For cuDSS, I implemented CUDSS.version() here.

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 a pull request may close this issue.

2 participants