Skip to content

Commit 5e6e79f

Browse files
tmigotamontoison
authored andcommitted
🤖 Format .jl files
1 parent d90bd8e commit 5e6e79f

File tree

1 file changed

+35
-5
lines changed

1 file changed

+35
-5
lines changed

test/gpu_test.jl

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,53 @@ function nls_gpu_tests(p, Model; exclude = [])
2121
end
2222
end
2323

24-
@testset "Check GPU multiprecision for quasi-Newton model modifiers $M of NLP" for M in [LBFGSModel, LSR1Model, DiagonalPSBModel, DiagonalAndreiModel, SpectralGradientModel]
24+
@testset "Check GPU multiprecision for quasi-Newton model modifiers $M of NLP" for M in [
25+
LBFGSModel,
26+
LSR1Model,
27+
DiagonalPSBModel,
28+
DiagonalAndreiModel,
29+
SpectralGradientModel,
30+
]
2531
# for hprod, seehttps://github.com/JuliaSmoothOptimizers/LinearOperators.jl/issues/327
26-
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))
32+
map(
33+
p -> nlp_gpu_tests(
34+
p,
35+
M,
36+
exclude = [hprod, hess, hess_coord, ghjvprod, jth_hess, jth_hess_coord, jth_hprod],
37+
),
38+
union(NLPModelsTest.nlp_problems, NLPModelsTest.nls_problems),
39+
)
2740
end
2841

2942
@testset "Check GPU multiprecision for model modifiers $M of NLP" for M in [FeasibilityResidual]
30-
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"]))
43+
map(
44+
p -> nlp_gpu_tests(
45+
p,
46+
M,
47+
exclude = [hess, hess_coord, ghjvprod, jth_hess, jth_hess_coord, jth_hprod],
48+
),
49+
setdiff(NLPModelsTest.nlp_problems, ["BROWNDEN", "HS5"]),
50+
)
3151
end
3252

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

3757
@testset "Check GPU multiprecision for model modifiers $M of NLP" for M in [FeasibilityResidual]
38-
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"]))
58+
map(
59+
p -> nls_gpu_tests(
60+
p,
61+
M,
62+
exclude = [hess, hess_coord, ghjvprod, jth_hess, jth_hess_coord, jth_hprod],
63+
),
64+
setdiff(NLPModelsTest.nls_problems, ["MGH01", "BNDROSENBROCK"]),
65+
)
3966
end
4067

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

0 commit comments

Comments
 (0)