Skip to content

Commit

Permalink
Test setting OPENBLAS_NUM_THREADS=1 on windows for Malt.Worker
Browse files Browse the repository at this point in the history
  • Loading branch information
Pangoraw authored Sep 13, 2023
1 parent c4bb0e2 commit 45e6e1b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/evaluation/WorkspaceManager.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 45e6e1b

Please sign in to comment.