Skip to content

Commit

Permalink
Test that we can use Apple Accelerate by default on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Oct 9, 2022
1 parent 658bc69 commit c843f00
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/HSL.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@ function __init__()
if VERSION v"1.7"
config = LinearAlgebra.BLAS.lbt_get_config()
if !any(lib -> lib.interface == :lp64, config.loaded_libs)
LinearAlgebra.BLAS.lbt_forward(OpenBLAS32_jll.libopenblas_path)
if !Sys.isapple()
LinearAlgebra.BLAS.lbt_forward(OpenBLAS32_jll.libopenblas_path)
else
blas = "/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/libBLAS.dylib"
lapack = "/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/libLAPACK.dylib"
LinearAlgebra.BLAS.lbt_forward(blas, verbose = true, clear = false)
LinearAlgebra.BLAS.lbt_forward(lapack, verbose = true, clear = false)
end
end
end
if (@isdefined libhsl_ma57) || (@isdefined libhsl_ma97) || (@isdefined libmc21)
Expand Down

0 comments on commit c843f00

Please sign in to comment.