price@price-laptop:~/LSST/ctrl/pool (tickets/DM-5989=) $ git sub
|
commit d4c28174a6f155897ed36afc7e847a43dd559c6a
|
Author: Paul Price <price@astro.princeton.edu>
|
Date: Wed Jan 4 14:25:31 2017 -0500
|
|
parallel: disable implicit threading
|
|
As when doing multiprocessing with pipe_base, we don't want the
|
user to have trouble with math libraries using as many threads as
|
cores because we're controlling the parallelism through the pool.
|
|
python/lsst/ctrl/pool/parallel.py | 1 +
|
1 file changed, 1 insertion(+)
|
|
commit 597ab040f0e29153739302ea827c32773e69b835
|
Author: Paul Price <price@astro.princeton.edu>
|
Date: Wed Jan 4 14:28:12 2017 -0500
|
|
pool: add reduce functions
|
|
This allows the master node to do the reduce operation while
|
waiting for slaves to complete the work, instead of operating
|
on the list after the slaves are done.
|
|
Recast the 'map' operations as 'reduce' operations since they're
|
so similar, but preserved the old API.
|
|
python/lsst/ctrl/pool/pool.py | 198 +++++++++++++++++++++++++++++++++++-------
|
1 file changed, 168 insertions(+), 30 deletions(-)
|
|
commit 618f8801dae71cd5347f41cd207ae83275b27bb3
|
Author: Paul Price <price@astro.princeton.edu>
|
Date: Wed Jan 4 14:30:37 2017 -0500
|
|
demo: use Pool.reduce instead of Pool.map
|
|
as it's now more fundamental.
|
|
python/lsst/ctrl/pool/test/demoTask.py | 4 ++--
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
commit 62f1124a25f618406b526f2b829b68dbf954d49d
|
Author: Paul Price <price@astro.princeton.edu>
|
Date: Fri Jan 6 15:17:35 2017 -0500
|
|
Pool: do reduction on slaves or in a thread
|
|
This is more efficient (especially if the reduction operation
|
is complicated), since it saves the master from having to do
|
lots of the same operation, when it can be done by many workers.
|
|
python/lsst/ctrl/pool/pool.py | 110 ++++++++++++++++++++++++++++-----
|
python/lsst/ctrl/pool/test/demoTask.py | 3 +-
|
2 files changed, 97 insertions(+), 16 deletions(-)
|
The database at STScI was opened on 2016-12-09, but it's not yet ready for bulk download. I'm downloading the DVO data from UH. Gene assures me that it contains the most recently-updated files, and no additional calculations need to be made.