File tree Expand file tree Collapse file tree 4 files changed +18
-9
lines changed Expand file tree Collapse file tree 4 files changed +18
-9
lines changed Original file line number Diff line number Diff line change 11name = " LinearSolve"
22uuid = " 7ed4a6bd-45f5-4d41-b270-4a48e9bafcae"
33authors = [" SciML" ]
4- version = " 2.23.1 "
4+ version = " 2.23.2 "
55
66[deps ]
77ArrayInterface = " 4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
Original file line number Diff line number Diff line change 182182const IS_OPENBLAS = Ref (true )
183183isopenblas () = IS_OPENBLAS[]
184184
185+ const HAS_APPLE_ACCELERATE = Ref (false )
186+ appleaccelerate_isavailable () = HAS_APPLE_ACCELERATE[]
187+
185188PrecompileTools. @compile_workload begin
186189 A = rand (4 , 4 )
187190 b = rand (4 )
Original file line number Diff line number Diff line change @@ -14,16 +14,20 @@ to avoid allocations and does not require libblastrampoline.
1414"""
1515struct AppleAccelerateLUFactorization <: AbstractFactorization end
1616
17- function appleaccelerate_isavailable ()
18- libacc_hdl = Libdl. dlopen_e (libacc)
19- if libacc_hdl == C_NULL
20- return false
21- end
17+ @static if ! Sys. isapple ()
18+ __appleaccelerate_isavailable () = false
19+ else
20+ function __appleaccelerate_isavailable ()
21+ libacc_hdl = Libdl. dlopen_e (libacc)
22+ if libacc_hdl == C_NULL
23+ return false
24+ end
2225
23- if dlsym_e (libacc_hdl, " dgetrf_" ) == C_NULL
24- return false
26+ if dlsym_e (libacc_hdl, " dgetrf_" ) == C_NULL
27+ return false
28+ end
29+ return true
2530 end
26- return true
2731end
2832
2933function aa_getrf! (A:: AbstractMatrix{<:ComplexF64} ;
Original file line number Diff line number Diff line change 11function __init__ ()
22 IS_OPENBLAS[] = occursin (" openblas" , BLAS. get_config (). loaded_libs[1 ]. libname)
3+
4+ HAS_APPLE_ACCELERATE[] = __appleaccelerate_isavailable ()
35end
You can’t perform that action at this time.
0 commit comments