Sorry, my mistake. Is there a user question list that you could direct me to, where i'd be able to ask questions like this? I've already begun with a few tutorials. I've been working with "Parallel Programming with MPI" by Peter Pacheco and also have begun browsing official MPI-2.2 Standard which I order from HLRS. None of the material I've seen covers the scenario I described though. Apologies again, I won't post further questions here.<br>
<br>Mike<br><br><div class="gmail_quote">On Mon, Jul 12, 2010 at 2:21 PM, Richard Treumann <span dir="ltr"><<a href="mailto:treumann@us.ibm.com">treumann@us.ibm.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<br><font size="2" face="sans-serif">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.</font>
<br>
<br><font size="2" face="sans-serif">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. </font>
<br>
<br><font size="2" face="sans-serif">There are many MPI Tutorial on the Web
and you should probably begin there.</font>
<br>
<br>
<br><font size="2" face="sans-serif">Dick Treumann  -  MPI Team
          <br>
IBM Systems & Technology Group<br>
Dept X2ZA / MS P963 -- 2455 South Road -- Poughkeepsie, NY 12601<br>
Tele (845) 433-7846         Fax (845) 433-8363<br>
</font>
<br>
<br>
<br>
<table width="100%">
<tbody><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">From:</font>
</td><td><font size="1" face="sans-serif">Michael Morrison <<a href="mailto:mwmorrison93@gmail.com" target="_blank">mwmorrison93@gmail.com</a>></font>
</td></tr><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">To:</font>
</td><td><font size="1" face="sans-serif"><a href="mailto:mpi-forum@lists.mpi-forum.org" target="_blank">mpi-forum@lists.mpi-forum.org</a></font>
</td></tr><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">Date:</font>
</td><td><font size="1" face="sans-serif">07/12/2010 05:06 PM</font>
</td></tr><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">Subject:</font>
</td><td><font size="1" face="sans-serif">[Mpi-forum] Integrating parallel and
serial code</font>
</td></tr><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">Sent by:</font>
</td><td><font size="1" face="sans-serif"><a href="mailto:mpi-forum-bounces@lists.mpi-forum.org" target="_blank">mpi-forum-bounces@lists.mpi-forum.org</a></font></td></tr></tbody></table>
<br>
<hr noshade>
<br>
<br>
<br><font size="3"><div class="im">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? <br>
<br>
>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.<br>
<br>
Thanks for your time,<br>
<br></div>
Mike</font><tt><font size="2">_______________________________________________<br>
mpi-forum mailing list<br>
<a href="mailto:mpi-forum@lists.mpi-forum.org" target="_blank">mpi-forum@lists.mpi-forum.org</a><br>
</font></tt><a href="http://lists.mpi-forum.org/mailman/listinfo.cgi/mpi-forum" target="_blank"><tt><font size="2">http://lists.mpi-forum.org/mailman/listinfo.cgi/mpi-forum</font></tt></a><tt><font size="2"><br>
</font></tt>
<br>
<br><br>_______________________________________________<br>
mpi-forum mailing list<br>
<a href="mailto:mpi-forum@lists.mpi-forum.org">mpi-forum@lists.mpi-forum.org</a><br>
<a href="http://lists.mpi-forum.org/mailman/listinfo.cgi/mpi-forum" target="_blank">http://lists.mpi-forum.org/mailman/listinfo.cgi/mpi-forum</a><br>
<br></blockquote></div><br>