From 8002d607ff7d9cf5990a443a2d4d07ff3c90c84e Mon Sep 17 00:00:00 2001 From: Ryan Elandt Date: Mon, 8 Oct 2018 20:14:20 -0400 Subject: [PATCH] changed mul_heuristic for non-float --- src/matrix_multiply.jl | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/src/matrix_multiply.jl b/src/matrix_multiply.jl index 597e07ff..19646db9 100644 --- a/src/matrix_multiply.jl +++ b/src/matrix_multiply.jl @@ -72,21 +72,9 @@ end @generated function _mul(Sa::Size{sa}, Sb::Size{sb}, a::StaticMatrix{<:Any, <:Any, Ta}, b::StaticMatrix{<:Any, <:Any, Tb}) where {sa, sb, Ta, Tb} # Heuristic choice for amount of codegen - if sa[1]*sa[2]*sb[2] <= 8*8*8 - return quote - @_inline_meta - return mul_unrolled(Sa, Sb, a, b) - end - elseif sa[1] <= 14 && sa[2] <= 14 && sb[2] <= 14 - return quote - @_inline_meta - return mul_unrolled_chunks(Sa, Sb, a, b) - end - else - return quote - @_inline_meta - return mul_loop(Sa, Sb, a, b) - end + return quote + @_inline_meta + return mul_loop(Sa, Sb, a, b) end end