-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding LAPACK_jll to fix issue when using TV2D in ProxTV.jl
- Loading branch information
1 parent
a8dbe8b
commit 45f8796
Showing
2 changed files
with
4 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,15 @@ | ||
module ProxTV | ||
|
||
using OpenBLAS32_jll | ||
using LAPACK_jll | ||
using LinearAlgebra | ||
# Include wrappers and the main library | ||
include("libproxtv.jl") | ||
# include("gen/wrapper.jl") | ||
|
||
function configure_blas() | ||
config = LinearAlgebra.BLAS.lbt_get_config() | ||
if !any(lib -> lib.interface == :lp64, config.loaded_libs) | ||
@info "No LP64 BLAS found, forwarding to OpenBLAS32_jll" | ||
LinearAlgebra.BLAS.lbt_forward(OpenBLAS32_jll.libopenblas_path) | ||
else | ||
@info "BLAS library is already loaded correctly" | ||
end | ||
config = LinearAlgebra.BLAS.lbt_get_config() | ||
if !any(lib -> lib.interface == :lp64, config.loaded_libs) | ||
LinearAlgebra.BLAS.lbt_forward(OpenBLAS32_jll.libopenblas_path) | ||
end | ||
|
||
configure_blas() | ||
|
||
end |