Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test that we can use Apple Accelerate by default on Mac #124

Closed
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
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