[Pympi-users] E-cell and parallel pympi extensions
Status: Alpha
Brought to you by:
patmiller
From: Julian C. <rjc...@cs...> - 2006-02-22 00:36:59
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> Sorry for the delay in replying. Pat Miller is better qualified to answer this question, but I will try to outline the answer.<br> <br> pympi is itself a special version of the python interpreter that is mpi aware. Most users are specifically using pympi, because it allows them to AVOID having to write parallel programs in a low level language like C.<br> <br> pympi is mpi aware, because it initialises the MPI processes at startup. You access them through the loading of the mpi module with this statement:<br> <b>>>> import </b>mpi<br> <br> There is an example of the other approach, where the mpi calls are made in a compiled module here:<br> <br> <a class="moz-txt-link-freetext" href="http://pympi.sourceforge.net/examples.html">http://pympi.sourceforge.net/examples.html</a><br> <br> See the simple extension example. This is actually a python extension that also includes mpi calls using the MPI C api directly without going through python, for instance it uses the C api to get it's own rank:<br> <br> <pre><span class="csyntax9">MPI_Comm_rank</span>(MPI_COMM_WORLD,<span class="csyntax11">&</span>rank); </pre> I have not used the C api myself from pympi, for the reasons I stated at the beginning:<br> <br> regards<br> <br> Julian Cook<br> </body> </html> |