Commit 3118a54d authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

Optimization of the number of processes for 8 threads per solver

parent 91e5f249
......@@ -507,7 +507,12 @@ def launch_researchs(args):
d['final_prop'] = prop
return d
with ProcessPoolExecutor(max_workers=mp.cpu_count()) as e:
# Fix number of processes
# PS: the new solver is optimized for 8 threads
nb_cpu_required = mp.cpu_count() / 8
nb_cpu_required = 1 if nb_cpu_required == 0 else nb_cpu_required
with ProcessPoolExecutor(max_workers=nb_cpu_required) as e:
futures_and_output = {e.submit(compute_macs,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment