Skip to content

Commit a56afbb

Browse files
committed
Small recursion threshold for AVX512
1 parent a790145 commit a56afbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lu.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ function lu!(A, pivot::Union{Val{false}, Val{true}} = Val(true); check=true, kwa
1717
end
1818

1919
# Use a function here to make sure it gets optimized away
20-
# OpenBLAS' TRSM isn't very good, we use a higher threshold for recursion
21-
pick_threshold() = BLAS.vendor() === :mkl ? 48 : 192
20+
# AVX512 needs a smaller recursion limit
21+
pick_threshold() = LoopVectorization.VectorizationBase.AVX512F ? 48 : 192
2222

2323
function lu!(A::AbstractMatrix{T}, ipiv::AbstractVector{<:Integer},
2424
pivot::Union{Val{false}, Val{true}} = Val(true);

0 commit comments

Comments
 (0)