#3 Null wrappers for MPI



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.



  • Philip (Flip) Kromer

    MPI-less serial MPI wrapper written in python

  • Michael P. Steder

    Logged In: YES

    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)
    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 :~)


  • Patrick Miller

    Patrick Miller - 2005-02-23

    Logged In: YES

    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.

  • Patrick Miller

    Patrick Miller - 2005-02-23
    • assigned_to: nobody --> patmiller
    • status: open --> closed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks