Skip to content

Commit

Permalink
Merge pull request #17327 from JuliaLang/sjk/rm-matmul-test
Browse files Browse the repository at this point in the history
Remove test for #14722 (type instability in generic matmul)
  • Loading branch information
simonster authored Jul 8, 2016
2 parents efa23ad + 0153e7d commit 0d1cee7
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions test/linalg/matmul.jl
Original file line number Diff line number Diff line change
Expand Up @@ -388,15 +388,3 @@ let
@test_throws DimensionMismatch A_mul_B!(full43, full43, tri44)
end
end

# Ensure that matrix multiplication with a narrower output type than input type does not
# produce allocation in the inner loop (#14722), by ensuring allocation does not change
# with the size of the input.
C1 = Array(Float32, 5, 5)
A1 = rand(Float64, 5, 5)
B1 = rand(Float64, 5, 5)
C2 = Array(Float32, 6, 6)
A2 = rand(Float64, 6, 6)
B2 = rand(Float64, 6, 6)
A_mul_B!(C1, A1, B1)
@test @allocated(A_mul_B!(C1, A1, B1)) == @allocated(A_mul_B!(C2, A2, B2))

0 comments on commit 0d1cee7

Please sign in to comment.