From 82de248d1c8682ac717bd1a6ca469a0d6d68d49c Mon Sep 17 00:00:00 2001 From: Fons van der Plas <fonsvdplas@gmail.com> Date: Thu, 14 Sep 2023 13:08:37 +0200 Subject: [PATCH] trying JULIA_NUM_PRECOMPILE_TASKS=1 --- src/evaluation/WorkspaceManager.jl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/evaluation/WorkspaceManager.jl b/src/evaluation/WorkspaceManager.jl index 3c31e474b3..7a1ecb31ab 100644 --- a/src/evaluation/WorkspaceManager.jl +++ b/src/evaluation/WorkspaceManager.jl @@ -284,10 +284,16 @@ function create_workspaceprocess(WorkerType; compiler_options=CompilerOptions(), Status.report_business_started!(status, Symbol(1)) Status.report_business_planned!(status, Symbol(2)) + env = String[] # NOTE: Test to reduce the required memory on windows # .... see https://github.com/JuliaLang/julia/pull/47803 # .... the same fix can maybe be applied to other os? - env = Sys.iswindows() && WorkerType == Malt.Worker ? String["OPENBLAS_NUM_THREADS=1"] : String[] + if Sys.iswindows() && WorkerType == Malt.Worker + push!(env, "OPENBLAS_NUM_THREADS=1") + if VERSION < v"1.7.0" + push!(env, "JULIA_NUM_PRECOMPILE_TASKS=1") + end + end worker = WorkerType(; exeflags=_convert_to_flags(compiler_options), env) Status.report_business_finished!(status, Symbol(1))