From 25ca956e94895d925ddc5507da95986f4a2c2458 Mon Sep 17 00:00:00 2001 From: David Emms Date: Thu, 2 Apr 2020 09:45:59 +0100 Subject: [PATCH] Set OPENBLAS_NUM_THREADS=1, resolves #356 --- scripts_of/__main__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts_of/__main__.py b/scripts_of/__main__.py index 5ad6603a..48d56e19 100755 --- a/scripts_of/__main__.py +++ b/scripts_of/__main__.py @@ -29,9 +29,11 @@ from __future__ import absolute_import from . import parallel_task_manager +import os # Y +os.environ["OPENBLAS_NUM_THREADS"] = "1" # fix issue with numpy/openblas. Will mean that single threaded options aren't automatically parallelised + import sys # Y import subprocess # Y -import os # Y import glob # Y import shutil # Y import time # Y