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
…#48064)

This was add to OpenBLAS in OpenMathLib/OpenBLAS#3773 and was supposed to be used in #46844 but was likely typod

(cherry picked from commit 75bc5ee)
  • Loading branch information
KristofferC committed Jan 2, 2023
1 parent 106f5be commit 05c8182
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 05c8182

Please sign in to comment.