We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a2e763 commit a512f1aCopy full SHA for a512f1a
base/Base.jl
@@ -461,10 +461,6 @@ end
461
462
if is_primary_base_module
463
function __init__()
464
- # try to ensuremake sure OpenBLAS does not set CPU affinity (#1070, #9639)
465
- if !haskey(ENV, "OPENBLAS_MAIN_FREE")
466
- ENV["OPENBLAS_MAIN_FREE"] = "1"
467
- end
468
# for the few uses of Libc.rand in Base:
469
Libc.srand()
470
# Base library init
stdlib/OpenBLAS_jll/src/OpenBLAS_jll.jl
@@ -32,6 +32,11 @@ else
32
end
33
34
35
+ # make sure OpenBLAS does not set CPU affinity (#1070, #9639)
36
+ if !haskey(ENV, "OPENBLAS_MAIN_FREE")
37
+ ENV["OPENBLAS_MAIN_FREE"] = "1"
38
+ end
39
+
40
global libopenblas_handle = dlopen(libopenblas)
41
global libopenblas_path = dlpath(libopenblas_handle)
42
global artifact_dir = dirname(Sys.BINDIR)
0 commit comments