Skip to content

Commit

Permalink
up alloc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tmigot committed Feb 13, 2024
1 parent d46274b commit c475c6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_allocations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@
expected_cgls_lanczos_shift_bytes = storage_cgls_lanczos_shift_bytes(m, k, nshifts)
(x, stats) = cgls_lanczos_shift(Ao, b, shifts) # warmup
actual_cgls_lanczos_shift_bytes = @allocated cgls_lanczos_shift(Ao, b, shifts)
@test expected_cgls_lanczos_shift_bytes actual_cgls_lanczos_shift_bytes 1.02 * expected_cgls_lanczos_shift_bytes
@test expected_cgls_lanczos_shift_bytes actual_cgls_lanczos_shift_bytes 1.03 * expected_cgls_lanczos_shift_bytes

solver = CglsLanczosShiftSolver(Ao, b, length(shifts))
cgls_lanczos_shift!(solver, Ao, b, shifts) # warmup
Expand Down

0 comments on commit c475c6b

Please sign in to comment.