Skip to content

Commit

Permalink
confirmed that openmp works for the new version of artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
sshin23 committed Jun 12, 2023
1 parent c0e454d commit dee0251
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/MadNLPHSL/src/MadNLPHSL.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import HSL_jll: libhsl
import LinearAlgebra, OpenBLAS32_jll

function __init__()
if VERSION v"1.7"
if VERSION v"1.9"
config = LinearAlgebra.BLAS.lbt_get_config()
if !any(lib -> lib.interface == :lp64, config.loaded_libs)
LinearAlgebra.BLAS.lbt_forward(OpenBLAS32_jll.libopenblas_path)
Expand Down
5 changes: 1 addition & 4 deletions lib/MadNLPHSL/src/ma86.jl
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,7 @@ function Ma86Solver(
opt=Ma86Options(),logger=MadNLPLogger(),
) where T

# Note: the current version of HSL_jll does not support openmp.
# this will be reenabled once openmp is supported in HSL_jll.

# ma86_set_num_threads(opt.ma86_num_threads)
ma86_set_num_threads(opt.ma86_num_threads)

order = Vector{Int32}(undef,csc.n)

Expand Down
5 changes: 1 addition & 4 deletions lib/MadNLPHSL/src/ma97.jl
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,7 @@ function Ma97Solver(
opt=Ma97Options(),logger=MadNLPLogger(),
) where T

# Note: the current version of HSL_jll does not support openmp.
# this will be reenabled once openmp is supported in HSL_jll.

# ma97_set_num_threads(opt.ma97_num_threads)
ma97_set_num_threads(opt.ma97_num_threads)

n = Int32(csc.n)

Expand Down

0 comments on commit dee0251

Please sign in to comment.