Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
890904b7
Commit
890904b7
authored
May 01, 2015
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use multiprocessing with the max number of simultaneous processes of the pc
parent
b78fd61b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
dream/plugins/Batches/BatchesACO.py
dream/plugins/Batches/BatchesACO.py
+3
-1
No files found.
dream/plugins/Batches/BatchesACO.py
View file @
890904b7
...
...
@@ -83,7 +83,9 @@ class BatchesACO(ACO):
# else run ACO
data
[
'general'
][
'numberOfSolutions'
]
=
1
# default of 1 solution for this instance
data
[
"general"
][
"distributorURL"
]
=
None
# no distributor currently, to be added in the GUI
data
[
"general"
][
"multiprocessorCount"
]
=
8
# number of parrallel processes, to be added to the GUI
# use multiprocessing in the PC. This can be an option, but default for now
import
multiprocessing
data
[
"general"
][
"multiprocessorCount"
]
=
multiprocessing
.
cpu_count
()
-
1
or
1
ACO
.
run
(
self
,
data
)
data
[
"result"
][
"result_list"
][
-
1
][
"score"
]
=
''
data
[
"result"
][
"result_list"
][
-
1
][
"key"
]
=
"Go To Results Page"
...
...
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