pymor.parallel.default
¶
Module Contents¶
- pymor.parallel.default.new_parallel_pool(ipython_num_engines=None, ipython_profile=None, allow_mpi=True)[source]¶
Creates a new default
WorkerPool
.If
ipython_num_engines
oripython_profile
is provided as an argument or set as adefault
, anIPythonPool
WorkerPool
will be created using the given parameters via theipcluster
script.Otherwise, when
allow_mpi
isTrue
and an MPI parallel run is detected, anMPIPool
WorkerPool
will be created.Otherwise, a sequential run is assumed and
pymor.parallel.dummy.dummy_pool
is returned.