Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
VIGNET Pierre
cadbiom
Commits
5eba2d8a
Commit
5eba2d8a
authored
Feb 16, 2017
by
VIGNET Pierre
Browse files
max workers to 2
parent
e7f9f467
Changes
1
Show whitespace changes
Inline
Side-by-side
solution_search.py
View file @
5eba2d8a
...
@@ -528,10 +528,10 @@ def launch_researchs(params):
...
@@ -528,10 +528,10 @@ def launch_researchs(params):
# Fix number of processes
# Fix number of processes
# PS: the new solver is optimized for 8 threads
# PS: the new solver is optimized for 8 threads
nb_cpu_required
=
mp
.
cpu_count
()
/
8
#
nb_cpu_required = mp.cpu_count() / 8
nb_cpu_required
=
1
if
nb_cpu_required
==
0
else
nb_cpu_required
#
nb_cpu_required = 1 if nb_cpu_required == 0 else nb_cpu_required
with
ProcessPoolExecutor
(
max_workers
=
nb_cpu_required
)
as
e
:
with
ProcessPoolExecutor
(
max_workers
=
2
)
as
e
:
futures_and_output
=
{
e
.
submit
(
compute_macs
,
futures_and_output
=
{
e
.
submit
(
compute_macs
,
update_params
(
job_property
)
update_params
(
job_property
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment