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

Introduce linear solvers with version info #315

Merged
merged 1 commit into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/MadNLPGPU/src/cudss.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,5 @@ end
MadNLP.improve!(M::CUDSSSolver) = false
MadNLP.is_supported(::Type{CUDSSSolver},::Type{Float32}) = true
MadNLP.is_supported(::Type{CUDSSSolver},::Type{Float64}) = true
MadNLP.introduce(M::CUDSSSolver) = "cuDSS"
MadNLP.introduce(M::CUDSSSolver) = "cuDSS v$(CUDSS.version())"

2 changes: 1 addition & 1 deletion lib/MadNLPHSL/src/ma27.jl
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function improve!(M::Ma27Solver)
return true
end

introduce(::Ma27Solver)="ma27"
introduce(::Ma27Solver)="ma27 v$(HSL.MA27_version())"
input_type(::Type{Ma27Solver}) = :csc
default_options(::Type{Ma27Solver}) = Ma27Options()
is_supported(::Type{Ma27Solver},::Type{Float32}) = true
Expand Down
2 changes: 1 addition & 1 deletion lib/MadNLPHSL/src/ma57.jl
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function improve!(M::Ma57Solver)
return true
end

introduce(::Ma57Solver)="ma57"
introduce(::Ma57Solver)="ma57 v$(HSL.MA57_version())"
input_type(::Type{Ma57Solver}) = :csc
default_options(::Type{Ma57Solver}) = Ma57Options()
is_supported(::Type{Ma57Solver},::Type{Float32}) = true
Expand Down
2 changes: 1 addition & 1 deletion lib/MadNLPHSL/src/ma77.jl
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ function improve!(M::Ma77Solver)
return true
end

introduce(::Ma77Solver)="ma77"
introduce(::Ma77Solver)="ma77 v$(HSL.HSL_MA77_version())"
input_type(::Type{Ma77Solver}) = :csc
default_options(::Type{Ma77Solver}) = Ma77Options()
is_supported(::Type{Ma77Solver},::Type{Float32}) = true
Expand Down
2 changes: 1 addition & 1 deletion lib/MadNLPHSL/src/ma86.jl
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function improve!(M::Ma86Solver)
@debug(M.logger,"improved quality: pivtol = $(M.control.u)")
return true
end
introduce(::Ma86Solver)="ma86"
introduce(::Ma86Solver)="ma86 v$(HSL.HSL_MA86_version())"
input_type(::Type{Ma86Solver}) = :csc
default_options(::Type{Ma86Solver}) = Ma86Options()
is_supported(::Type{Ma86Solver},::Type{Float32}) = true
Expand Down
2 changes: 1 addition & 1 deletion lib/MadNLPHSL/src/ma97.jl
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function improve!(M::Ma97Solver)
@debug(M.logger,"improved quality: pivtol = $(M.control.u)")
return true
end
introduce(::Ma97Solver)="ma97"
introduce(::Ma97Solver)="ma97 v$(HSL.HSL_MA97_version())"
input_type(::Type{Ma97Solver}) = :csc
default_options(::Type{Ma97Solver}) = Ma97Options()
is_supported(::Type{Ma97Solver},::Type{Float32}) = true
Expand Down
2 changes: 1 addition & 1 deletion src/LinearSolvers/cholmod.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@ input_type(::Type{CHOLMODSolver}) = :csc
default_options(::Type{CHOLMODSolver}) = CHOLMODOptions()

improve!(M::CHOLMODSolver) = false
introduce(::CHOLMODSolver) = "cholmod"
introduce(::CHOLMODSolver) = "cholmod v$(CHOLMOD.BUILD_VERSION)"
is_supported(::Type{CHOLMODSolver},::Type{Float32}) = true
is_supported(::Type{CHOLMODSolver},::Type{Float64}) = true
2 changes: 1 addition & 1 deletion src/LinearSolvers/ldl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ default_options(::Type{LDLSolver}) = LDLFactorizationsOptions()
function improve!(M::LDLSolver)
return false
end
introduce(::LDLSolver) = "LDLFactorizations"
introduce(::LDLSolver) = "LDLFactorizations v$(pkgversion(LDLF))"
is_supported(::Type{LDLSolver},::Type{T}) where T <: AbstractFloat = true
Loading