diff --git a/test/allocs_test.jl b/test/allocs_test.jl index 4e24345..69c3402 100644 --- a/test/allocs_test.jl +++ b/test/allocs_test.jl @@ -57,8 +57,7 @@ end ), ) map( - nlp -> - NLPModelsTest.test_zero_allocations(nlp, linear_api = true, exclude = [hess]), + nlp -> NLPModelsTest.test_zero_allocations(nlp, linear_api = true, exclude = [hess]), map(x -> FeasibilityFormNLS(eval(Symbol(x))()), problems), ) end diff --git a/test/gpu_test.jl b/test/gpu_test.jl index c87bf53..07a2974 100644 --- a/test/gpu_test.jl +++ b/test/gpu_test.jl @@ -21,12 +21,32 @@ 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] - map(p -> nlp_gpu_tests(p, M, exclude = [hess, hess_coord, ghjvprod, jth_hess, jth_hess_coord, jth_hprod]), union(NLPModelsTest.nlp_problems, NLPModelsTest.nls_problems)) +@testset "Check GPU multiprecision for quasi-Newton model modifiers $M of NLP" for M in [ + LBFGSModel, + LSR1Model, + DiagonalPSBModel, + DiagonalAndreiModel, + SpectralGradientModel, +] + map( + p -> nlp_gpu_tests( + p, + M, + exclude = [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] @@ -34,9 +54,19 @@ end 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