Skip to content

Commit bf37b33

Browse files
committed
Use older MKL on Intel Macs
1 parent 679f02d commit bf37b33

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ MKL_jll = "2021, 2022, 2023, 2024"
1212
[extras]
1313
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1414
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
15-
15+
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
1616

1717
[targets]
18-
test = ["Test", "SpecialFunctions"]
18+
test = ["Test", "SpecialFunctions", "Pkg"]

test/runtests.jl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
1+
import Pkg
2+
using Pkg
3+
4+
if Sys.isapple() && Sys.ARCH == :x86_64
5+
Pkg.add(name="MKL_jll", version="2023");
6+
Pkg.pin(name="MKL_jll", version="2023");
7+
end
8+
19
import MKL_jll
10+
if !MKL_jll.is_available()
11+
@warn "MKL is not available/installed. Exiting."
12+
exit()
13+
end
14+
215
using Test
316
using IntelVectorMath
417
using SpecialFunctions

0 commit comments

Comments
 (0)