Skip to content

Commit 27ebe7b

Browse files
committed
Load the symbols of BLIS when we use BLIS.jl
1 parent f453201 commit 27ebe7b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/BLIS.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,18 @@ using LinearAlgebra
88
global libblis = C_NULL
99

1010
__init__() = begin
11-
if length(get(ENV, "BLISDIR", "")) > 0
11+
if haskey(ENV, "BLISDIR")
12+
blis_path = joinpath(ENV["BLISDIR"], "lib", "libblis.$dlext")
1213
# BLIS installation overriden by environmental variables.
1314
@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)
1517
else
1618
blis_path = blis_jll.blis_path
1719
# Use BinaryBuilder provided BLIS library.
1820
@info "blis_jll yields BLIS installation: $blis_path."
1921
global libblis = dlopen(blis_path)
22+
BLAS.lbt_forward(blis_path)
2023
end
2124
end
2225

0 commit comments

Comments
 (0)