bfarr / kombine

A kernel-density-based, embarrassingly parallel ensemble sampler
http://pages.uoregon.edu/bfarr/kombine
MIT License
34 stars 25 forks source link

Allow MPI pools #4

Closed adrn closed 9 years ago

adrn commented 9 years ago

I think this is all you need in order to support MPI via mpipool. I just made the sampler more agnostic to what the pool object is, and to just assume it has a map() method. I also added a SerialPool object that mimics the API of the multiprocessing pool but is really just a wrapper around the built-in map() function.

bfarr commented 9 years ago

This is great. Looking forward to adding MPI.