You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's an obvious use-case for tools to iterate over SWIFTGalaxy objects in parallel. This was omitted from the initial SWIFTGalaxies PR for simplicity but implementing some parallelization tools on top of SWIFTGalaxies should be high on the to-do list. Some initial thoughts carried over from the SWIFTGalaxies development process:
SWIFTGalaxies.split(n) to return a list of nSWIFTGalaxies instances each with a fraction approx 1/n of the ensemble of target regions (where each region could contain many target galaxies). This can easily be farmed out to multiple processes (maybe a SWIFTGalaxies.sub(n, N) approach makes more sense so that each process gets a copy-on-write instance and then picks out its own share?). Some cookbook examples useful here.
Could combine map with split (or sub) to offer some parallelization built in.
Consider analogous tools to other tools from the multiprocessing in addition to map. Things like some kind of queue, or asynchronous access to results as they arrive.
Beware nested parallelism.
The text was updated successfully, but these errors were encountered:
There's an obvious use-case for tools to iterate over
SWIFTGalaxy
objects in parallel. This was omitted from the initialSWIFTGalaxies
PR for simplicity but implementing some parallelization tools on top ofSWIFTGalaxies
should be high on the to-do list. Some initial thoughts carried over from theSWIFTGalaxies
development process:SWIFTGalaxies.split(n)
to return a list ofn
SWIFTGalaxies
instances each with a fraction approx1/n
of the ensemble of target regions (where each region could contain many target galaxies). This can easily be farmed out to multiple processes (maybe aSWIFTGalaxies.sub(n, N)
approach makes more sense so that each process gets a copy-on-write instance and then picks out its own share?). Some cookbook examples useful here.map
withsplit
(orsub
) to offer some parallelization built in.map
. Things like some kind of queue, or asynchronous access to results as they arrive.The text was updated successfully, but these errors were encountered: