We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d79573 commit 29c6d35Copy full SHA for 29c6d35
1 file changed
test/dispatch.jl
@@ -15,12 +15,13 @@ function dispatch_tests(::Type{T}) where {T}
15
c = one(T)
16
x = convert.(T, [1, 2, 3])
17
# Need to allocate 1 BigInt for the result and one for the buffer
18
- alloc_test(() -> MA.fused_map_reduce(MA.add_mul, x, x), 2BIGINT_ALLOC)
19
- alloc_test(() -> MA.fused_map_reduce(MA.add_dot, x, x), 2BIGINT_ALLOC)
+ nalloc = 2 * (sizeof(Int) + _big_int_alloc())
+ alloc_test(() -> MA.fused_map_reduce(MA.add_mul, x, x), nalloc)
20
+ alloc_test(() -> MA.fused_map_reduce(MA.add_dot, x, x), nalloc)
21
if T <: MA.AbstractMutable
- alloc_test(() -> x'x, 2BIGINT_ALLOC)
22
- alloc_test(() -> transpose(x) * x, 2BIGINT_ALLOC)
23
- alloc_test(() -> LinearAlgebra.dot(x, x), 2BIGINT_ALLOC)
+ alloc_test(() -> x'x, nalloc)
+ alloc_test(() -> transpose(x) * x, nalloc)
24
+ alloc_test(() -> LinearAlgebra.dot(x, x), nalloc)
25
end
26
27
0 commit comments