[Mpi-forum] Integrating parallel and serial code

Dave Goodell goodell at mcs.anl.gov
Mon Jul 12 16:32:13 CDT 2010


I'm not sure who controls it (Rich/Jeff?), but it might help to put some text in the "About mpi-forum" field on the list subscription page to keep these sorts of questions from happening as frequently.  It's currently blank.

http://lists.mpi-forum.org/mailman/listinfo.cgi/mpi-forum

-Dave

On Jul 12, 2010, at 4:21 PM CDT, Richard Treumann wrote:

> 
> This reflector is for discussion of the MPI Standard. The Forum is working on extending the standard and this is part of how we communicate. It is not a user question list. 
> 
> The simple answer is that MPI execute several distinct copies of a program and provides the tools to let the program author break up the work over these several copies. The program author breaks up the work into many pieces and uses MPI to move data among the several pieces. 
> 
> There are many MPI Tutorial on the Web and you should probably begin there. 
> 
> 
> Dick Treumann  -  MPI Team           
> IBM Systems & Technology Group
> Dept X2ZA / MS P963 -- 2455 South Road -- Poughkeepsie, NY 12601
> Tele (845) 433-7846         Fax (845) 433-8363
> 
> 
> 
> From:	Michael Morrison <mwmorrison93 at gmail.com>
> To:	mpi-forum at lists.mpi-forum.org
> Date:	07/12/2010 05:06 PM
> Subject:	[Mpi-forum] Integrating parallel and serial code
> Sent by:	mpi-forum-bounces at lists.mpi-forum.org
> 
> 
> 
> 
> Hi All, I'm extremely new to MPI so forgive me if my question comes off as silly. I've only been dabbling around with parallel computing for a few weeks now but I'm wondering about the possibilities. So far with each example that I've been through, I create an MPI application and then run this application using the mpiexec command. What I'm wondering about is if it would be possible to say have a C function that executes some algorithm in a parallel manner that could be called by another C function. For example suppose i had two C functions, the first called function A and the second called function B. Function A is just a normal function that runs serially, function B executes its algorithm parallelly using MPI constucts. Is it possible to have a set up like this? 
> 
> >From the examples I've seen it appears that the MPI code runs as standalone units and couldn't be integrated with  serially executing code. Is this true or is there someway to make this set up work? I may not have given enough information to answer the question, if there's any confusion please ask and i'll clarify.
> 
> Thanks for your time,
> 
> Mike_______________________________________________
> mpi-forum mailing list
> mpi-forum at lists.mpi-forum.org
> http://lists.mpi-forum.org/mailman/listinfo.cgi/mpi-forum
> 
> 
> _______________________________________________
> mpi-forum mailing list
> mpi-forum at lists.mpi-forum.org
> http://lists.mpi-forum.org/mailman/listinfo.cgi/mpi-forum





More information about the mpi-forum mailing list