From cf0e25494f904e8b678387e3db68f6347c8f3bcf Mon Sep 17 00:00:00 2001 From: Chris Elrod Date: Tue, 30 Jul 2024 09:05:21 -0400 Subject: [PATCH 1/3] CpuId can only be loaded on x86 --- src/LinearSolve.jl | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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 From 50a9af14b64a18171b6bf1d102d07069c9052ccc Mon Sep 17 00:00:00 2001 From: Chris Elrod Date: Tue, 30 Jul 2024 09:07:15 -0400 Subject: [PATCH 2/3] Bump patch --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 01c20dad..b24e80f7 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "LinearSolve" uuid = "7ed4a6bd-45f5-4d41-b270-4a48e9bafcae" authors = ["SciML"] -version = "2.31.0" +version = "2.31.1" [deps] ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9" From 0a500bf8ac0e60aa1083f64513e2fd42d1b55ec8 Mon Sep 17 00:00:00 2001 From: Chris Elrod Date: Tue, 30 Jul 2024 09:21:40 -0400 Subject: [PATCH 3/3] ignore CpuId for statle deps --- test/qa.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/qa.jl b/test/qa.jl index 9b404506..faa9e701 100644 --- a/test/qa.jl +++ b/test/qa.jl @@ -6,7 +6,7 @@ using LinearSolve, Aqua Aqua.test_piracies(LinearSolve, treat_as_own = [LinearProblem]) Aqua.test_project_extras(LinearSolve) - Aqua.test_stale_deps(LinearSolve, ignore = [:MKL_jll]) + Aqua.test_stale_deps(LinearSolve, ignore = [:MKL_jll, :CpuId]) Aqua.test_unbound_args(LinearSolve) Aqua.test_undefined_exports(LinearSolve) end