Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Commit 48e721b

Browse files
author
RuQing Xu
authored
Save libblis_path as global var
1 parent affcd5a commit 48e721b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/BLIS.jl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,20 @@ using Libdl
55
using blis_jll
66
using LinearAlgebra
77

8+
global libblis_path = ""
89
global libblis = C_NULL
910

1011
__init__() = begin
1112
if length(get(ENV, "BLISDIR", "")) > 0
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_path = joinpath(get(ENV, "BLISDIR", ""), "lib/libblis")
1516
else
16-
blis_path = blis_jll.blis_path
17+
global libblis_path = blis_jll.blis_path
1718
# Use BinaryBuilder provided BLIS library.
18-
@info "blis_jll yields BLIS installation: $blis_path."
19-
global libblis = dlopen(blis_path)
19+
@info "blis_jll yields BLIS installation: $libblis_path."
2020
end
21+
global libblis = dlopen(libblis_path)
2122
end
2223

2324
# Data types.

0 commit comments

Comments
 (0)