|
204 | 204 | ) |
205 | 205 | alloc_test(() -> MA.mutability(y, MA.add_mul, y, A, x), 0) |
206 | 206 | end |
207 | | - |
| 207 | + BIGINT_ALLOC = 2 * sizeof(Int) + @allocated(BigInt(1)) |
208 | 208 | alloc_test(() -> MA.add_mul!!(y, A, x), BIGINT_ALLOC) |
209 | 209 | alloc_test( |
210 | 210 | () -> MA.operate_fallback!!(MA.IsMutable(), MA.add_mul, y, A, x), |
|
277 | 277 | ) |
278 | 278 | alloc_test(() -> MA.mutability(C, MA.add_mul, C, A, B), 0) |
279 | 279 | end |
280 | | - |
| 280 | + BIGINT_ALLOC = 2 * sizeof(Int) + @allocated(BigInt(1)) |
281 | 281 | alloc_test(() -> MA.add_mul!!(C, A, B), BIGINT_ALLOC) |
282 | 282 | alloc_test(() -> MA.operate!!(MA.add_mul, C, A, B), BIGINT_ALLOC) |
283 | 283 | alloc_test(() -> MA.operate!(MA.add_mul, C, A, B), BIGINT_ALLOC) |
@@ -473,8 +473,8 @@ function test_sparse_vector_sum(::Type{T}) where {T} |
473 | 473 | y = copy(x) |
474 | 474 | z = copy(y) |
475 | 475 | # FIXME not sure what is allocating |
476 | | - alloc_test_le(() -> MA.operate!(+, y, z), 200) |
477 | | - alloc_test_le(() -> MA.operate!(-, y, z), 200) |
| 476 | + alloc_test(() -> MA.operate!(+, y, z), 200) |
| 477 | + alloc_test(() -> MA.operate!(-, y, z), 200) |
478 | 478 | alloc_test(() -> MA.operate_to!(x, +, y, z), 0) |
479 | 479 | alloc_test(() -> MA.operate_to!(x, -, y, z), 0) |
480 | 480 | alloc_test(() -> MA.operate_to!(x, +, y), 0) |
|
0 commit comments