Skip to content

Commit 91a3f8d

Browse files
committed
Disable use of older MKL_jll versions (#781)
1 parent 684a483 commit 91a3f8d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ KrylovPreconditioners = "0.3"
9393
LazyArrays = "1.8, 2"
9494
Libdl = "1.10"
9595
LinearAlgebra = "1.10"
96+
MKL_jll = "2019, 2020, 2021, 2022, 2023, 2024, 2025"
9697
MPI = "0.20"
9798
Markdown = "1.10"
9899
Metal = "1"

src/LinearSolve.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,11 @@ const CRC = ChainRulesCore
4242
@static if Sys.ARCH === :x86_64 || Sys.ARCH === :i686
4343
if Preferences.@load_preference("LoadMKL_JLL",
4444
!occursin("EPYC", Sys.cpu_info()[1].model))
45+
# MKL_jll < 2022.2 doesn't support the mixed LP64 and ILP64 interfaces that we make use of in LinearSolve
46+
# In particular, the `_64` APIs do not exist
47+
# https://www.intel.com/content/www/us/en/developer/articles/release-notes/onemkl-release-notes-2022.html
4548
using MKL_jll
46-
const usemkl = MKL_jll.is_available()
49+
const usemkl = MKL_jll.is_available() && pkgversion(MKL_jll) >= v"2022.2"
4750
else
4851
const usemkl = false
4952
end

0 commit comments

Comments
 (0)