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 1
1
name = " LinearSolve"
2
2
uuid = " 7ed4a6bd-45f5-4d41-b270-4a48e9bafcae"
3
3
authors = [" SciML" ]
4
- version = " 2.23.1 "
4
+ version = " 2.23.2 "
5
5
6
6
[deps ]
7
7
ArrayInterface = " 4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
Original file line number Diff line number Diff line change 182
182
const IS_OPENBLAS = Ref (true )
183
183
isopenblas () = IS_OPENBLAS[]
184
184
185
+ const HAS_APPLE_ACCELERATE = Ref (false )
186
+ appleaccelerate_isavailable () = HAS_APPLE_ACCELERATE[]
187
+
185
188
PrecompileTools. @compile_workload begin
186
189
A = rand (4 , 4 )
187
190
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.
14
14
"""
15
15
struct AppleAccelerateLUFactorization <: AbstractFactorization end
16
16
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
22
25
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
25
30
end
26
- return true
27
31
end
28
32
29
33
function aa_getrf! (A:: AbstractMatrix{<:ComplexF64} ;
Original file line number Diff line number Diff line change 1
1
function __init__ ()
2
2
IS_OPENBLAS[] = occursin (" openblas" , BLAS. get_config (). loaded_libs[1 ]. libname)
3
+
4
+ HAS_APPLE_ACCELERATE[] = __appleaccelerate_isavailable ()
3
5
end
You can’t perform that action at this time.
0 commit comments