Skip to content

Commit 27f687c

Browse files
committed
🤖 Format .jl files
1 parent b10139b commit 27f687c

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

benchmark/run_local.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ else
3333
end
3434

3535
@info "RUN"
36-
@time result = with_logger(ConsoleLogger(Error)) do # remove warnings
36+
@time result = with_logger(ConsoleLogger(Error)) do # remove warnings
3737
if "params.json" in (path == "" ? readdir() : readdir(path))
3838
loadparams!(suite, BenchmarkTools.load("params.json")[1], :evals, :samples)
3939
end

src/ad.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,7 @@ function ADModelNLSBackend(
300300

301301
JBLS = jacobian_residual_backend
302302
b = @elapsed begin
303-
jacobian_residual_backend =
304-
if jacobian_residual_backend isa Union{AbstractNLPModel, ADBackend}
303+
jacobian_residual_backend = if jacobian_residual_backend isa Union{AbstractNLPModel, ADBackend}
305304
jacobian_residual_backend
306305
else
307306
JBLS(nvar, x -> zero(eltype(x)), nequ, F!; show_time, kwargs...)
@@ -467,8 +466,7 @@ function ADModelNLSBackend(
467466

468467
JBLS = jacobian_residual_backend
469468
b = @elapsed begin
470-
jacobian_residual_backend =
471-
if jacobian_residual_backend isa Union{AbstractNLPModel, ADBackend}
469+
jacobian_residual_backend = if jacobian_residual_backend isa Union{AbstractNLPModel, ADBackend}
472470
jacobian_residual_backend
473471
else
474472
JBLS(nvar, x -> zero(eltype(x)), nequ, F!; show_time, kwargs...)

test/gpu.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ end
1616
)
1717
@testset "Checking GPU multiple precision on problem $problem" for problem in
1818
NLPModelsTest.nlp_problems
19+
1920
nlp_from_T = eval(Meta.parse(lowercase(problem) * "_autodiff"))
2021
CUDA.allowscalar() do
2122
# sparse Jacobian/Hessian doesn't work here
@@ -39,6 +40,7 @@ end
3940
)
4041
@testset "Checking GPU multiple precision on problem $problem" for problem in
4142
NLPModelsTest.nls_problems
43+
4244
nls_from_T = eval(Meta.parse(lowercase(problem) * "_autodiff"))
4345
CUDA.allowscalar() do
4446
# sparse Jacobian/Hessian doesn't work here

test/nlp/nlpmodelstest.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
function nlp_nlpmodelstest(backend)
22
@testset "Checking NLPModelsTest tests on problem $problem" for problem in
33
NLPModelsTest.nlp_problems
4+
45
nlp_from_T = eval(Meta.parse(lowercase(problem) * "_autodiff"))
56
nlp_ad = nlp_from_T(; backend = backend)
67
nlp_man = eval(Meta.parse(problem))()

test/nls/nlpmodelstest.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
function nls_nlpmodelstest(backend)
22
@testset "Checking NLPModelsTest tests on problem $problem" for problem in
33
NLPModelsTest.nls_problems
4+
45
nls_from_T = eval(Meta.parse(lowercase(problem) * "_autodiff"))
56
nls_ad = nls_from_T(; backend = backend)
67
nls_man = eval(Meta.parse(problem))()

0 commit comments

Comments
 (0)