Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BluePyMM
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BlueBrain
BluePyMM
Commits
6fb33f01
Commit
6fb33f01
authored
8 years ago
by
Werner Alfons Hilda Van Geit
Browse files
Options
Downloads
Patches
Plain Diff
Make sure multiprocessing doesn't recycle slaves
parent
8f5843a4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bluepymm/prepare_emodel_dirs.py
+2
-2
2 additions, 2 deletions
bluepymm/prepare_emodel_dirs.py
with
2 additions
and
2 deletions
bluepymm/prepare_emodel_dirs.py
+
2
−
2
View file @
6fb33f01
...
...
@@ -180,8 +180,8 @@ def prepare_emodel_dirs(
continu
))
print
(
'
Parallelising preparation of emodel dirs
'
)
pool
=
multiprocessing
.
Pool
()
for
emodel_dir_dict
in
pool
.
map
(
prepare_emodel_dir
,
arg_list
):
pool
=
multiprocessing
.
Pool
(
maxtasksperchild
=
1
)
for
emodel_dir_dict
in
pool
.
map
(
prepare_emodel_dir
,
arg_list
,
chunksize
=
1
):
for
emodel
,
emodel_dir
in
emodel_dir_dict
.
iteritems
():
emodel_dirs
[
emodel
]
=
emodel_dir
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment