Null wrappers for MPI
Status: Alpha
Brought to you by:
patmiller
Hello,
For getting pyMPI ported to new machines, for
debugging, and for overally utility I think it would be
useful to have a python-only mpi Module that implements
all the MPI operations as single-processor null ops:
that is, you may run a pyMPI program in normal python
(not pyMPI*), but only as a single process; but you do
not need MPI installed.
I have attached the minimal possible wrapper: it gets
examples/fractal.py working and that's it.
flip
MPI-less serial MPI wrapper written in python
Logged In: YES
user_id=564691
I think that this is a very good idea, and wouldn't mind
implementing the wrappers for the other functions.
I think users will still have to do something in their code
to allow this flexibility, such as the following:
(Long ago in a user code far far away)
...
try:
import mpi
except ImportError:
print "MPI is not available, will attempt to run as a
single process:"
import mpi-null.py # Insert "Better" module name here :~)
...
Mike
Logged In: YES
user_id=30074
This is still a good idea... I have a serial
MPI implementation that does most
of this. I should at least explore a way
to build without MPI turned on so that
you get a normal mpi.so that can be
used by serial Python.