Skip to content

Commit

Permalink
use the correct env variable name to set default openblas num threads
Browse files Browse the repository at this point in the history
This was add to OpenBLAS in OpenMathLib/OpenBLAS#3773 and was supposed to be used in #46844 but was likely typod
  • Loading branch information
KristofferC committed Dec 31, 2022
1 parent a8adb39 commit a7de532
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/OpenBLAS_jll/src/OpenBLAS_jll.jl
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function __init__()
!haskey(ENV, "OMP_NUM_THREADS")
# We set this to `1` here, and then LinearAlgebra will update
# to the true value in its `__init__()` function.
ENV["OPENBLAS_NUM_THREADS"] = "1"
ENV["OPENBLAS_DEFAULT_NUM_THREADS"] = "1"
end

global libopenblas_handle = dlopen(libopenblas)
Expand Down

0 comments on commit a7de532

Please sign in to comment.