Commit 1a5a383b authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

full multiprocessing available

parent b1816226
......@@ -2,8 +2,8 @@
from __future__ import unicode_literals
from __future__ import print_function
from pycallgraph import PyCallGraph
from pycallgraph.output import GraphvizOutput
#from pycallgraph import PyCallGraph
#from pycallgraph.output import GraphvizOutput
# Standard imports
import re
......@@ -556,7 +556,7 @@ def launch_researchs(params):
# nb_cpu_required = mp.cpu_count() / 8
# nb_cpu_required = 1 if nb_cpu_required == 0 else nb_cpu_required
with ProcessPoolExecutor(max_workers=2) as e:
with ProcessPoolExecutor(max_workers=mp.cpu_count()) as e:
futures_and_output = {e.submit(compute_macs,
update_params(job_property)
......
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