|
10 | 10 |
|
11 | 11 | @test CUDA.functional() |
12 | 12 |
|
13 | | -@testset "Checking NLPModelsTest (NLP) tests with $backend - GPU multiple precision" for backend in keys(ADNLPModels.predefined_backend) |
14 | | - @testset "Checking GPU multiple precision on problem $problem" for problem in NLPModelsTest.nlp_problems |
| 13 | +@testset "Checking NLPModelsTest (NLP) tests with $backend - GPU multiple precision" for backend in |
| 14 | + keys( |
| 15 | + ADNLPModels.predefined_backend, |
| 16 | +) |
| 17 | + @testset "Checking GPU multiple precision on problem $problem" for problem in |
| 18 | + NLPModelsTest.nlp_problems |
15 | 19 | nlp_from_T = eval(Meta.parse(lowercase(problem) * "_autodiff")) |
16 | 20 | CUDA.allowscalar() do |
17 | 21 | # sparse Jacobian/Hessian doesn't work here |
18 | | - multiple_precision_nlp_array(T -> nlp_from_T(T; jacobian_backend = ADNLPModels.ForwardDiffADJacobian, hessian_backend = ADNLPModels.ForwardDiffADHessian), CuArray, exclude = [jth_hprod, hprod, jprod], linear_api = true) |
| 22 | + multiple_precision_nlp_array( |
| 23 | + T -> nlp_from_T( |
| 24 | + T; |
| 25 | + jacobian_backend = ADNLPModels.ForwardDiffADJacobian, |
| 26 | + hessian_backend = ADNLPModels.ForwardDiffADHessian, |
| 27 | + ), |
| 28 | + CuArray, |
| 29 | + exclude = [jth_hprod, hprod, jprod], |
| 30 | + linear_api = true, |
| 31 | + ) |
19 | 32 | end |
20 | 33 | end |
21 | 34 | end |
22 | 35 |
|
23 | | -@testset "Checking NLPModelsTest (NLS) tests with $backend - GPU multiple precision" for backend in keys(ADNLPModels.predefined_backend) |
24 | | - @testset "Checking GPU multiple precision on problem $problem" for problem in NLPModelsTest.nls_problems |
| 36 | +@testset "Checking NLPModelsTest (NLS) tests with $backend - GPU multiple precision" for backend in |
| 37 | + keys( |
| 38 | + ADNLPModels.predefined_backend, |
| 39 | +) |
| 40 | + @testset "Checking GPU multiple precision on problem $problem" for problem in |
| 41 | + NLPModelsTest.nls_problems |
25 | 42 | nls_from_T = eval(Meta.parse(lowercase(problem) * "_autodiff")) |
26 | 43 | CUDA.allowscalar() do |
27 | 44 | # sparse Jacobian/Hessian doesn't work here |
28 | | - multiple_precision_nls_array(T -> nls_from_T(T; jacobian_backend = ADNLPModels.ForwardDiffADJacobian, hessian_backend = ADNLPModels.ForwardDiffADHessian, jacobian_residual_backend = ADNLPModels.ForwardDiffADJacobian, hessian_residual_backend = ADNLPModels.ForwardDiffADHessian), CuArray, exclude = [jprod, jprod_residual, hprod_residual], linear_api = true) |
| 45 | + multiple_precision_nls_array( |
| 46 | + T -> nls_from_T( |
| 47 | + T; |
| 48 | + jacobian_backend = ADNLPModels.ForwardDiffADJacobian, |
| 49 | + hessian_backend = ADNLPModels.ForwardDiffADHessian, |
| 50 | + jacobian_residual_backend = ADNLPModels.ForwardDiffADJacobian, |
| 51 | + hessian_residual_backend = ADNLPModels.ForwardDiffADHessian, |
| 52 | + ), |
| 53 | + CuArray, |
| 54 | + exclude = [jprod, jprod_residual, hprod_residual], |
| 55 | + linear_api = true, |
| 56 | + ) |
29 | 57 | end |
30 | 58 | end |
31 | 59 | end |
0 commit comments