mirror of https://github.com/KLayout/klayout.git
capping the number of threads to 8
This commit is contained in:
parent
18518353ba
commit
b0c69d8fe4
4
setup.py
4
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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue