Permalink
Browse files

* Update the queue estimation when sending futures.

  • Loading branch information...
soravux committed Aug 12, 2014
0 parents commit e190d00296573a0ec11cde9caf8f5b31e849cadf
Showing with 13,590 additions and 0 deletions.
  1. +6 −0 .hgignore
  2. +123 −0 CHANGELOG.txt
  3. +165 −0 LICENSE.txt
  4. +6 −0 MANIFEST.in
  5. +6 −0 README.txt
  6. +121 −0 bench/benchmark.py
  7. 0 bench/evosn/dependency/__init__.py
  8. +128 −0 bench/evosn/dependency/sortingnetwork.py
  9. +181 −0 bench/evosn/dtm_evosn.py
  10. +183 −0 bench/evosn/futures_evosn.py
  11. +183 −0 bench/evosn/multi_evosn.py
  12. +181 −0 bench/evosn/scoop_evosn.py
  13. +393 −0 bench/process_debug.py
  14. +130 −0 doc/Makefile
  15. +57 −0 doc/_static/copybutton.js
  16. BIN doc/_static/logo.png
  17. +161 −0 doc/_static/sidebar.js
  18. +12 −0 doc/_template/globaltoc.html
  19. +4 −0 doc/_template/indexcontent.html
  20. +22 −0 doc/_template/indexsidebar.html
  21. +67 −0 doc/_template/page.html
  22. +171 −0 doc/_themes/pydoctheme/static/pydoctheme.css
  23. +23 −0 doc/_themes/pydoctheme/theme.conf
  24. +67 −0 doc/api.rst
  25. +253 −0 doc/conf.py
  26. +100 −0 doc/contributing.rst
  27. +174 −0 doc/examples.rst
  28. BIN doc/images/architecture.png
  29. BIN doc/images/introductory_tree.png
  30. BIN doc/images/logo.png
  31. BIN doc/images/monteCarloPiExample.gif
  32. BIN doc/images/reduction.png
  33. +80 −0 doc/index.rst
  34. +129 −0 doc/install.rst
  35. +170 −0 doc/make.bat
  36. +453 −0 doc/usage.rst
  37. +43 −0 examples/callback.py
  38. +31 −0 examples/conditional_execution.py
  39. +32 −0 examples/conditional_import.py
  40. +156 −0 examples/deap_ga_evosn.py
  41. +87 −0 examples/deap_ga_onemax.py
  42. 0 examples/dependency/__init__.py
  43. +128 −0 examples/dependency/sortingnetwork.py
  44. +78 −0 examples/except_example.py
  45. +62 −0 examples/full_tree.py
  46. +105 −0 examples/image_resize.py
  47. +15 −0 examples/interactive_shell.py
  48. +37 −0 examples/lambda.py
  49. +37 −0 examples/map_as_completed.py
  50. +29 −0 examples/map_doc.py
  51. +58 −0 examples/map_reduce.py
  52. +52 −0 examples/map_scan.py
  53. +47 −0 examples/object.py
  54. +45 −0 examples/pi_calc.py
  55. +34 −0 examples/pi_calc_doc.py
  56. +37 −0 examples/recurse.py
  57. +67 −0 examples/rssDoc.py
  58. +53 −0 examples/shared_example.py
  59. +70 −0 examples/shared_example_doc.py
  60. +80 −0 examples/sorting.py
  61. +21 −0 examples/submit_files/SGE.sh
  62. +19 −0 examples/submit_files/Torque.sh
  63. +41 −0 examples/sum_multiples.py
  64. +154 −0 examples/tree/Tree.py
  65. +44 −0 examples/tree/TreeGen.py
  66. +17 −0 examples/tree/dtm-tree.py
  67. +17 −0 examples/tree/scoop_tree.py
  68. +17 −0 examples/tree/serial-tree.py
  69. +137 −0 examples/tree_traversal.py
  70. +68 −0 examples/url_fetch.py
  71. +55 −0 examples/url_fetch_doc.py
  72. +33 −0 scoop/__init__.py
  73. +21 −0 scoop/__main__.py
  74. +24 −0 scoop/_comm/__init__.py
  75. +27 −0 scoop/_comm/scoopexceptions.py
  76. +394 −0 scoop/_comm/scooptcp.py
  77. +438 −0 scoop/_comm/scoopzmq.py
  78. +274 −0 scoop/_control.py
  79. +86 −0 scoop/_debug.py
  80. +415 −0 scoop/_types.py
  81. 0 scoop/backports/__init__.py
  82. +549 −0 scoop/backports/dictconfig.py
  83. +219 −0 scoop/backports/newCollections.py
  84. +279 −0 scoop/backports/runpy.py
  85. 0 scoop/bootstrap/__init__.py
  86. +298 −0 scoop/bootstrap/__main__.py
  87. 0 scoop/broker/__init__.py
  88. +116 −0 scoop/broker/__main__.py
  89. +330 −0 scoop/broker/brokertcp.py
  90. +348 −0 scoop/broker/brokerzmq.py
  91. +22 −0 scoop/broker/structs.py
  92. +94 −0 scoop/discovery/__init__.py
  93. +712 −0 scoop/discovery/minusconf.py
  94. +168 −0 scoop/encapsulation.py
  95. +67 −0 scoop/fallbacks.py
  96. +478 −0 scoop/futures.py
  97. +19 −0 scoop/launch/__init__.py
  98. +110 −0 scoop/launch/__main__.py
  99. +212 −0 scoop/launch/brokerLaunch.py
  100. +34 −0 scoop/launch/constants.py
  101. +221 −0 scoop/launch/workerLaunch.py
  102. +486 −0 scoop/launcher.py
  103. +184 −0 scoop/shared.py
  104. +276 −0 scoop/utils.py
  105. +58 −0 setup.py
  106. +4 −0 test/hostfilesim.txt
  107. +1 −0 test/pbshostssim.txt
  108. +4 −0 test/setup.cfg
  109. +4 −0 test/sgehostssim.txt
  110. +660 −0 test/tests.py
  111. +112 −0 test/tests_parser.py
  112. +45 −0 test/tests_stat.py
  113. +46 −0 test/tests_stopwatch.py
@@ -0,0 +1,6 @@
syntax: glob
*.pyc
*.py~
doc/_build
dist/
build/
@@ -0,0 +1,123 @@
0.7.1 (2014/03/17)
------------------
+ Added: Support for SLURM (Thanks EBo!)
+ Added: Fallback to standard map when application launched without -m scoop
+ Fixed: Distribution ordering issue that translated in loss of performance when multiple maps were used
+ Fixed: Multiple SIGINT would cancel remote process cleanup and result in zombie workers
+ Fixed: Support for csh and its variants
+ Improved: SCOOP's logger
+ Improved: Queues (Broker and Worker) are now all FIFOs
+ Improved: Debugging information on launching process
+ Improved: Documentation
0.7.0 (2014/01/30)
------------------
+ Improved: Garbage collection of Futures.
0.7.0-RC2 (2013/11/13)
----------------------
+ Fixed: Bug sharing lambda function (referenced elements could not unpickle)
+ Fixed: Bug sharing method (elements would falsely be treated as methods)
0.7.0-RC1 (2013/08/02)
----------------------
+ Fixed: Local launches could generate zombie processes
+ Added: map_as_completed() in the futures API interface
+ Added: Benchmark utilities
+ Added: Support for multi-brokers
+ Improved: Documentation
+ Improved: mapReduce() now won't communicate intermediary results
+ Improved: Future results are now sent back directly to its destination
+ Improved: Reduction has now a tree communication scheme (logarithmic reduce)
+ Improved: Various socket optimizations
0.6.2 (2013/07/02)
------------------
+ Fixed: Process cleanup on csh/tsh shell variants
+ Fixed: Using partials could crash - switched Future callable identification from __name__ to its hash()
0.6.1 (2013/03/04)
------------------
+ Fixed: Support for Python 2.6
+ Fixed: Logging configuration contamination
+ Added: Preliminary support for Object-Oriented paradigm (Parallel method executions)
+ Added: Support for lambda execution
+ Added: Pool discovery features
+ Improved: A Future can now return None
0.6.0 (2013/01/21)
------------------
+ Improved: Launching submodule
+ Improved: Network handling
+ Improved: Debugging output
+ Improved: Documentation and examples
+ Changed: Default verbosity is now level 1
+ Added: --quiet flag
+ Added: Nicing levels for local workers
Special thanks to:
+ Stijn De Weirdt <stijn.deweirdt <at> gmail.com>
0.6.0-RC2 (2012/12/28)
----------------------
+ Added: Shared constants and functions
+ Added: Examples for newly available features
+ Added: Support for interactive sessions
0.6.0-RC1 (2012/11/22)
----------------------
+ Fixed: Backported modules conflicting with Python 3 installation
+ Fixed: Memory leak in the Futures queues
+ Improved: Time-based future buffer (instead of count-based)
+ Improved: Cleaning remote workers after termination
+ Added: Remote broker launching
+ Added: mapReduce and mapScan functions
0.5.3 (2012/08/24)
------------------
+ Improved worker ouput to standard output
+ Fixed: Launching distribution shown in verbose mode
+ Fixed: Python 2.6 launching issue
+ Fixed: Remote worker cleanup upon abnormal program termination
0.5.2 (2012/08/14)
------------------
+ Improved networking
+ Improved bootstrapping
+ Added unit tests
+ Fixed: Memory leak on exception handling
+ Fixed: Memory leak on Futures handling
0.5.1 (2012/07/29)
------------------
+ Substantially improved documentation
+ Improved grid scheduler support (SGE and Torque)
+ Improved hostfile support
+ Added: Python 2.6 support (see documentation)
+ Added: Default number of workers is now the number of local CPUs
+ Fixed: Bug on some Future return value
+ Fixed: Memory leak on a specific Future usage
0.5.0 (Alpha) (2012/05/11)
--------------------------
+ Greenlet based task handling
+ ZeroMQ based networking
+ Master-Slave paradigm implemented named Broker <-> Worker
+ Tasks caching features implemented (Thresholds named high and low water marks)
@@ -0,0 +1,165 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.
"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".
The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
@@ -0,0 +1,6 @@
include *.txt
recursive-include examples *.py
recursive-include doc *
recursive-include scoop/backports *.py
prune doc/_build
prune .hg
@@ -0,0 +1,6 @@
SCOOP (Scalable COncurrent Operations in Python) is a distributed task module
allowing concurrent parallel programming on various environments, from
heterogeneous grids to supercomputers.
See https://scoop.googlecode.com/ for documentation, informations, bug
reporting and more.
Oops, something went wrong.

0 comments on commit e190d00

Please sign in to comment.