From 45e6e1b873859538556b48b2cc1688c6e379193d Mon Sep 17 00:00:00 2001 From: Paul Berg Date: Wed, 13 Sep 2023 13:23:32 +0200 Subject: [PATCH] Test setting OPENBLAS_NUM_THREADS=1 on windows for Malt.Worker --- src/evaluation/WorkspaceManager.jl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/evaluation/WorkspaceManager.jl b/src/evaluation/WorkspaceManager.jl index 3a8dcfe208..3c31e474b3 100644 --- a/src/evaluation/WorkspaceManager.jl +++ b/src/evaluation/WorkspaceManager.jl @@ -284,8 +284,12 @@ function create_workspaceprocess(WorkerType; compiler_options=CompilerOptions(), Status.report_business_started!(status, Symbol(1)) Status.report_business_planned!(status, Symbol(2)) - worker = WorkerType(; exeflags=_convert_to_flags(compiler_options)) - + # 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[] + worker = WorkerType(; exeflags=_convert_to_flags(compiler_options), env) + Status.report_business_finished!(status, Symbol(1)) Status.report_business_started!(status, Symbol(2))