File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -8,15 +8,18 @@ using LinearAlgebra
8
8
global libblis = C_NULL
9
9
10
10
__init__ () = begin
11
- if length (get (ENV , " BLISDIR" , " " )) > 0
11
+ if haskey (ENV , " BLISDIR" )
12
+ blis_path = joinpath (ENV [" BLISDIR" ], " lib" , " libblis.$dlext " )
12
13
# BLIS installation overriden by environmental variables.
13
14
@info " Using custom defined BLIS installation instead of blis_jll."
14
- global libblis = dlopen (string (get (ENV , " BLISDIR" , " " ), " /lib/libblis" ))
15
+ global libblis = dlopen (blis_path)
16
+ BLAS. lbt_forward (blis_path)
15
17
else
16
18
blis_path = blis_jll. blis_path
17
19
# Use BinaryBuilder provided BLIS library.
18
20
@info " blis_jll yields BLIS installation: $blis_path ."
19
21
global libblis = dlopen (blis_path)
22
+ BLAS. lbt_forward (blis_path)
20
23
end
21
24
end
22
25
You can’t perform that action at this time.
0 commit comments