Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit ce8353d

Browse files
committed
AllocCheck for SimpleLimitedMemoryBroyden
1 parent ec64612 commit ce8353d

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.buildkite/pipeline.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ steps:
33
plugins:
44
- JuliaCI/julia#v1:
55
version: "1"
6+
- JuliaCI/julia-test#v1:
67
agents:
78
queue: "juliagpu"
89
cuda: "*"

test/basictests.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ end
165165
@testset "Allocation Checks: $(_nameof(alg))" for alg in (SimpleNewtonRaphson(),
166166
SimpleHalley(), SimpleBroyden(), SimpleKlement(), SimpleLimitedMemoryBroyden(),
167167
SimpleTrustRegion())
168-
@check_allocs nlsolve(prob, alg) = DiffEqBase.__solve(prob, alg; abstol = 1e-9)
168+
@check_allocs nlsolve(prob, alg) = SciMLBase.solve(prob, alg; abstol = 1e-9)
169169

170170
nlprob_scalar = NonlinearProblem{false}(quadratic_f, 1.0, 2.0)
171171
nlprob_sa = NonlinearProblem{false}(quadratic_f, @SVector[1.0, 1.0], 2.0)
@@ -179,14 +179,12 @@ end
179179
end
180180

181181
# ForwardDiff allocates for hessian since we don't propagate the chunksize
182-
# SimpleLimitedMemoryBroyden needs to do views on the low rank matrices so the sizes
183-
# are dynamic. This can be fixed but no without maintaining the simplicity of the code
184182
try
185183
nlsolve(nlprob_sa, alg)
186184
@test true
187185
catch e
188186
@error e
189-
@test false broken=(alg isa SimpleHalley || alg isa SimpleLimitedMemoryBroyden)
187+
@test false broken=(alg isa SimpleHalley)
190188
end
191189
end
192190

0 commit comments

Comments
 (0)