From c8c350098f57a57805cc97abe3f1f7c397306694 Mon Sep 17 00:00:00 2001 From: Tangi Migot Date: Thu, 2 May 2024 13:34:48 +0200 Subject: [PATCH] Exclude hprod from quasi-Newton GPU tests (#117) --- test/gpu_test.jl | 41 ++++++----------------------------------- 1 file changed, 6 insertions(+), 35 deletions(-) diff --git a/test/gpu_test.jl b/test/gpu_test.jl index 07a2974..4ba350b 100644 --- a/test/gpu_test.jl +++ b/test/gpu_test.jl @@ -21,32 +21,13 @@ 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] + # 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)) 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] @@ -54,19 +35,9 @@ 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