Skip to content

Commit b20e015

Browse files
Merge pull request #425 from SciML/ChrisRackauckas-patch-1
add a separate preference for removing MKL_jll
2 parents 1c05968 + 1942efb commit b20e015

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/LinearSolve.jl

+7-6
Original file line numberDiff line numberDiff line change
@@ -38,24 +38,25 @@ PrecompileTools.@recompile_invalidations begin
3838

3939
# wrap
4040
import Krylov
41-
4241
using SciMLBase
43-
44-
using MKL_jll
45-
4642
import Preferences
4743
end
4844

4945
if Preferences.@load_preference("TriggerMKLLBT", true)
5046
using MKL
5147
end
5248

49+
if Preferences.@load_preference("LoadMKL_JLL", true)
50+
using MKL_jll
51+
const usemkl = MKL_jll.is_available()
52+
else
53+
const usemkl = false
54+
end
55+
5356
using Reexport
5457
@reexport using SciMLBase
5558
using SciMLBase: _unwrap_val
5659

57-
const usemkl = MKL_jll.is_available()
58-
5960
abstract type SciMLLinearSolveAlgorithm <: SciMLBase.AbstractLinearAlgorithm end
6061
abstract type AbstractFactorization <: SciMLLinearSolveAlgorithm end
6162
abstract type AbstractKrylovSubspaceMethod <: SciMLLinearSolveAlgorithm end

0 commit comments

Comments
 (0)