File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ using EnumX: EnumX, @enumx
28
28
using Markdown: Markdown, @doc_str
29
29
using ChainRulesCore: ChainRulesCore, NoTangent
30
30
using Reexport: Reexport, @reexport
31
- using Libdl: Libdl, dlsym_e
31
+ using Libdl: Libdl
32
32
import InteractiveUtils
33
33
import RecursiveArrayTools
34
34
Original file line number Diff line number Diff line change 1
1
using LinearAlgebra
2
- using Libdl
3
2
4
3
# For now, only use BLAS from Accelerate (that is to say, vecLib)
5
4
const global libacc = " /System/Library/Frameworks/Accelerate.framework/Accelerate"
@@ -19,10 +18,9 @@ struct AppleAccelerateLUFactorization <: AbstractFactorization end
19
18
const AA_IS_AVAILABLE = false
20
19
__appleaccelerate_isavailable () = false
21
20
else
22
- @static if Libdl. dlopen_e (libacc) == C_NULL
21
+ @static if Libdl. dlopen (libacc; throw_error = false ) === nothing
23
22
__appleaccelerate_isavailable () = false
24
- end
25
- @static if dlsym_e (Libdl. dlopen_e (libacc), " dgetrf_" ) == C_NULL
23
+ elseif Libdl. dlsym (Libdl. dlopen (libacc), " dgetrf_" ; throw_error = false ) === nothing
26
24
__appleaccelerate_isavailable () = false
27
25
else
28
26
__appleaccelerate_isavailable () = true
You can’t perform that action at this time.
0 commit comments