Skip to content

Commit

Permalink
Merge pull request #9 from nathanemac/add_libproxtv
Browse files Browse the repository at this point in the history
adding LAPACK_jll to fix issue when using TV2D in ProxTV.jl
  • Loading branch information
nathanemac authored Sep 13, 2024
2 parents 62c562a + 45f8796 commit 572b831
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
Binary file modified .DS_Store
Binary file not shown.
14 changes: 4 additions & 10 deletions src/ProxTV.jl
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

0 comments on commit 572b831

Please sign in to comment.