Skip to content

Commit

Permalink
Update tolerances for LSMR and SYMMLQ in allocation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Oct 11, 2022
1 parent 3a11347 commit ae3fc2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_allocations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
expected_symmlq_bytes = storage_symmlq_bytes(n)
symmlq(A, b) # warmup
actual_symmlq_bytes = @allocated symmlq(A, b)
@test expected_symmlq_bytes actual_symmlq_bytes 1.02 * expected_symmlq_bytes
@test expected_symmlq_bytes actual_symmlq_bytes 1.03 * expected_symmlq_bytes

solver = SymmlqSolver(A, b)
symmlq!(solver, A, b) # warmup
Expand Down Expand Up @@ -422,7 +422,7 @@
expected_lsmr_bytes = storage_lsmr_bytes(m, k)
(x, stats) = lsmr(Ao, b) # warmup
actual_lsmr_bytes = @allocated lsmr(Ao, b)
@test expected_lsmr_bytes actual_lsmr_bytes 1.02 * expected_lsmr_bytes
@test expected_lsmr_bytes actual_lsmr_bytes 1.03 * expected_lsmr_bytes

solver = LsmrSolver(Ao, b)
lsmr!(solver, Ao, b) # warmup
Expand Down

0 comments on commit ae3fc2d

Please sign in to comment.