From cb73296c970097eea0c33a6edf255c76018ed7a4 Mon Sep 17 00:00:00 2001 From: Kristoffer Carlsson Date: Sun, 1 Jan 2023 21:19:56 +0100 Subject: [PATCH] use the correct env variable name to set default openblas num threads (#48064) This was add to OpenBLAS in https://github.com/xianyi/OpenBLAS/pull/3773 and was supposed to be used in https://github.com/JuliaLang/julia/pull/46844/ but was likely typod (cherry picked from commit 75bc5ee590dbf60ebd167669c05076ab7955fafa) --- stdlib/OpenBLAS_jll/src/OpenBLAS_jll.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/OpenBLAS_jll/src/OpenBLAS_jll.jl b/stdlib/OpenBLAS_jll/src/OpenBLAS_jll.jl index c57dd15bb1930..2684a6b635cb4 100644 --- a/stdlib/OpenBLAS_jll/src/OpenBLAS_jll.jl +++ b/stdlib/OpenBLAS_jll/src/OpenBLAS_jll.jl @@ -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)