Skip to content

Commit

Permalink
CpuId can only be loaded on x86
Browse files Browse the repository at this point in the history
  • Loading branch information
chriselrod committed Jul 30, 2024
1 parent 8639ca8 commit cf0e254
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/LinearSolve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cf0e254

Please sign in to comment.