Skip to content

Commit

Permalink
Merge pull request #15958 from JuliaLang/tk/fix15957
Browse files Browse the repository at this point in the history
Fix #15957, ILP64 MKL not working
  • Loading branch information
tkelman committed Apr 21, 2016
2 parents dbbeb8d + ba76f65 commit 2e4513b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
6 changes: 0 additions & 6 deletions base/linalg/lapack.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ import Base.@blasfunc
import ..LinAlg: BlasFloat, Char, BlasInt, LAPACKException,
DimensionMismatch, SingularException, PosDefException, chkstride1, checksquare

const VERSION = Ref{VersionNumber}()

function __init__()
VERSION[] = VersionNumber(laver()...)
end

#Generic LAPACK error handlers
"""
Handle only negative LAPACK error codes
Expand Down
4 changes: 2 additions & 2 deletions base/linalg/svd.jl
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ If `thin=true` (default), a thin SVD is returned. For a ``M \\times N`` matrix
"""
function svdfact!{T<:BlasFloat}(A::StridedMatrix{T}, B::StridedMatrix{T})
# xggsvd3 replaced xggsvd in LAPACK 3.6.0
if LAPACK.VERSION[] < v"3.6.0"
if LAPACK.laver() < (3, 6, 0)
U, V, Q, a, b, k, l, R = LAPACK.ggsvd!('U', 'V', 'Q', A, B)
else
U, V, Q, a, b, k, l, R = LAPACK.ggsvd3!('U', 'V', 'Q', A, B)
Expand Down Expand Up @@ -216,7 +216,7 @@ end

function svdvals!{T<:BlasFloat}(A::StridedMatrix{T}, B::StridedMatrix{T})
# xggsvd3 replaced xggsvd in LAPACK 3.6.0
if LAPACK.VERSION[] < v"3.6.0"
if LAPACK.laver() < (3, 6, 0)
_, _, _, a, b, k, l, _ = LAPACK.ggsvd!('N', 'N', 'N', A, B)
else
_, _, _, a, b, k, l, _ = LAPACK.ggsvd3!('N', 'N', 'N', A, B)
Expand Down
2 changes: 1 addition & 1 deletion test/linalg/lapack.jl
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ for elty in (Float32, Float64, Complex64, Complex128)
@test_approx_eq V' lVt
B = rand(elty,10,10)
# xggsvd3 replaced xggsvd in LAPACK 3.6.0
if LAPACK.VERSION[] < v"3.6.0"
if LAPACK.laver() < (3, 6, 0)
@test_throws DimensionMismatch LAPACK.ggsvd!('S','S','S',A,B)
else
@test_throws DimensionMismatch LAPACK.ggsvd3!('S','S','S',A,B)
Expand Down

0 comments on commit 2e4513b

Please sign in to comment.