LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Tomek (toko_at_[hidden])
Date: 2004-11-26 08:57:21


OK, but MPI-2 seems to be not fully implemented yet.
Here is precisely what I would like to do:
Say: a library X exposes the following interface:
X_Init() - spawns worker processes and sets up communiation with them
X_Do() - does the job exploiting workers
X_Terminate() - terminates workers and makes the cleanup

I want to have the same interface for both serial and parallel version and
have all the internals of parallelization hidden. I know it is possible
to be done with PVM, and I will use it eventually, but I would prefer to use
MPI rather then PVM.
So - is it possible to implement such a library with MPI ?

Regards,
Tomek

On Friday 26 of November 2004 02:14, Jeff Squyres wrote:
> If I understand what you're asking -- each process is essentially a
> standalone entity and they periodically contact each otherr -- then,
> yes. The MPI-2 dynamic functions can be used for this purpose (e.g.,
> MPI_COMM_CONNECT and MPI_COMM_ACCEPT) -- you might want to have a look
> through the "Process creation and management" chapter in the MPI-2 spec
> for more details.