From b0c69d8fe4a4090040b8aeda50e9367bc326d571 Mon Sep 17 00:00:00 2001 From: Thomas Ferreira de Lima Date: Wed, 1 Aug 2018 20:24:10 -0400 Subject: [PATCH] capping the number of threads to 8 --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index ec224aca5..c999361ce 100644 --- a/setup.py +++ b/setup.py @@ -72,8 +72,8 @@ def parallelCCompile(self, sources, output_dir=None, macros=None, include_dirs=N cc_args = self._get_cc_args(pp_opts, debug, extra_preargs) # parallel code - N = min(N_cores, len(objects) // 2) # number of parallel compilations - print("Compiling", output_dir, "with", N, "threads.") + N = min(N_cores, len(objects) // 2, 8) # number of parallel compilations + print("Compiling with", N, "threads.") import multiprocessing.pool def _single_compile(obj):