Python version of the MPI _ IoC idea
The python sources are available on the github site. Those include the test routines used in the article discussed here. They also include a demonstration PyQt4 application that demonstrates the sending and receiving of different types of messages without prior coordination.
The framework only needs to supply the following methods:
- init (required for C, but implicit in the python)
- register_method_for_message_type (may or may not include data)
- stop (only actioned from rank 0)
- finalize (required for C, but implicit in python)
These methods are implemented in this single python code:
MPI_IoC.py- the framework itself
The python code is on the order of 100 lines. The other languages require significantly more boilerplate.