Skip to content

Commit

Permalink
🤖 Format .jl files
Browse files Browse the repository at this point in the history
  • Loading branch information
tmigot authored and amontoison committed Jun 20, 2024
1 parent d90bd8e commit 5e6e79f
Showing 1 changed file with 35 additions and 5 deletions.
40 changes: 35 additions & 5 deletions test/gpu_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,53 @@ function nls_gpu_tests(p, Model; exclude = [])
end
end

@testset "Check GPU multiprecision for quasi-Newton model modifiers $M of NLP" for M in [LBFGSModel, LSR1Model, DiagonalPSBModel, DiagonalAndreiModel, SpectralGradientModel]
@testset "Check GPU multiprecision for quasi-Newton model modifiers $M of NLP" for M in [
LBFGSModel,
LSR1Model,
DiagonalPSBModel,
DiagonalAndreiModel,
SpectralGradientModel,
]
# for hprod, seehttps://github.com/JuliaSmoothOptimizers/LinearOperators.jl/issues/327
map(p -> nlp_gpu_tests(p, M, exclude = [hprod, hess, hess_coord, ghjvprod, jth_hess, jth_hess_coord, jth_hprod]), union(NLPModelsTest.nlp_problems, NLPModelsTest.nls_problems))
map(
p -> nlp_gpu_tests(
p,
M,
exclude = [hprod, hess, hess_coord, ghjvprod, jth_hess, jth_hess_coord, jth_hprod],
),
union(NLPModelsTest.nlp_problems, NLPModelsTest.nls_problems),
)
end

@testset "Check GPU multiprecision for model modifiers $M of NLP" for M in [FeasibilityResidual]
map(p -> nlp_gpu_tests(p, M, exclude = [hess, hess_coord, ghjvprod, jth_hess, jth_hess_coord, jth_hprod]), setdiff(NLPModelsTest.nlp_problems, ["BROWNDEN", "HS5"]))
map(
p -> nlp_gpu_tests(
p,
M,
exclude = [hess, hess_coord, ghjvprod, jth_hess, jth_hess_coord, jth_hprod],
),
setdiff(NLPModelsTest.nlp_problems, ["BROWNDEN", "HS5"]),
)
end

@testset "Check GPU multiprecision for model modifiers $M of NLP" for M in [SlackModel]
map(p -> nlp_gpu_tests(p, M, exclude = []), NLPModelsTest.nlp_problems)
end

@testset "Check GPU multiprecision for model modifiers $M of NLP" for M in [FeasibilityResidual]
map(p -> nls_gpu_tests(p, M, exclude = [hess, hess_coord, ghjvprod, jth_hess, jth_hess_coord, jth_hprod]), setdiff(NLPModelsTest.nls_problems, ["MGH01", "BNDROSENBROCK"]))
map(
p -> nls_gpu_tests(
p,
M,
exclude = [hess, hess_coord, ghjvprod, jth_hess, jth_hess_coord, jth_hprod],
),
setdiff(NLPModelsTest.nls_problems, ["MGH01", "BNDROSENBROCK"]),
)
end

@testset "Check GPU multiprecision for model modifiers $M of NLP" for M in [SlackNLSModel, FeasibilityFormNLS]
@testset "Check GPU multiprecision for model modifiers $M of NLP" for M in [
SlackNLSModel,
FeasibilityFormNLS,
]
map(p -> nls_gpu_tests(p, M, exclude = []), NLPModelsTest.nls_problems)
end

0 comments on commit 5e6e79f

Please sign in to comment.