diff --git a/src/LinearSolve.jl b/src/LinearSolve.jl index f166f6b4..d8490e86 100644 --- a/src/LinearSolve.jl +++ b/src/LinearSolve.jl @@ -41,13 +41,16 @@ import PrecompileTools import Krylov using SciMLBase import Preferences - import CpuId - const CRC = ChainRulesCore -if Preferences.@load_preference("LoadMKL_JLL", !occursin("EPYC", CpuId.cpubrand())) - using MKL_jll - const usemkl = MKL_jll.is_available() +@static if Sys.ARCH === :x86_64 || Sys.ARCH === :i686 + import CpuId + if Preferences.@load_preference("LoadMKL_JLL", !occursin("EPYC", CpuId.cpubrand())) + using MKL_jll + const usemkl = MKL_jll.is_available() + else + const usemkl = false + end else const usemkl = false end