From d062d1a08daa4f1edce4a80840319c5ca6051f02 Mon Sep 17 00:00:00 2001 From: Fons van der Plas Date: Mon, 18 Sep 2023 11:53:54 +0200 Subject: [PATCH] OPENBLAS_NUM_THREADS=1 by default (#59) --- Project.toml | 2 +- src/Malt.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index a84783d..b62012b 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Malt" uuid = "36869731-bdee-424d-aa32-cab38c994e3b" authors = ["Sergio Alejandro Vargas "] -version = "1.0.2" +version = "1.0.3" [deps] Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b" diff --git a/src/Malt.jl b/src/Malt.jl index 7b29d56..57dd56b 100644 --- a/src/Malt.jl +++ b/src/Malt.jl @@ -217,7 +217,7 @@ end const src_path = RelocatableFolders.@path @__DIR__ function _get_worker_cmd(exe=Base.julia_cmd()[1]; env, exeflags) - return addenv(`$exe --startup-file=no $exeflags $(joinpath(src_path, "worker.jl"))`, Base.byteenv(env)) + return addenv(`$exe --startup-file=no $exeflags $(joinpath(src_path, "worker.jl"))`, String["OPENBLAS_NUM_THREADS=1", Base.byteenv(env)...]) end