Skip to content

Commit

Permalink
trying JULIA_NUM_PRECOMPILE_TASKS=1
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Sep 14, 2023
1 parent ed12abe commit 82de248
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/evaluation/WorkspaceManager.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 82de248

Please sign in to comment.