Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/BLIS.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,18 @@ using LinearAlgebra
global libblis = C_NULL

__init__() = begin
if length(get(ENV, "BLISDIR", "")) > 0
if haskey(ENV, "BLISDIR")
blis_path = joinpath(ENV["BLISDIR"], "lib", "libblis.$dlext")
# BLIS installation overriden by environmental variables.
@info "Using custom defined BLIS installation instead of blis_jll."
global libblis = dlopen(string(get(ENV, "BLISDIR", ""), "/lib/libblis"))
global libblis = dlopen(blis_path)
BLAS.lbt_forward(blis_path)
else
blis_path = blis_jll.blis_path
# Use BinaryBuilder provided BLIS library.
@info "blis_jll yields BLIS installation: $blis_path."
global libblis = dlopen(blis_path)
BLAS.lbt_forward(blis_path)
end
end

Expand Down