Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/LinearSolve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,16 @@ import PrecompileTools

const CRC = ChainRulesCore

if Preferences.@load_preference("LoadMKL_JLL", true)
# Check if Ryzen, since that's where MKL is slow
function is_zen()
# znverX
n = Sys.CPU_NAME
length(n) == 6 || return false
return n[1] == 'z' && n[2] == 'n' && n[3] == 'v' &&
n[4] == 'e' && n[5] == 'r'
end

@static if Preferences.@load_preference("LoadMKL_JLL", is_zen())
using MKL_jll
const usemkl = MKL_jll.is_available()
else
Expand Down
Loading