Jayesh,<div> Thanks for your immediate response. I have successfully built a DLL from my code (instead of an exe) and have integrated the DLL into the existing project's exe. I have to run the project exe on one processor and when invoked i have to run my code on multiple processors. How do i tell my DLL to use multiple processors and how do I know which processor is running the code? The only way I know how to do that is to use mpiexec -n 2 and this tells MPI_Comm_size that I have 2 processors and MPI_Comm_rank to get the rank of the current processor.</div>
<div>Thanks</div><div>Prashanth</div><div><br><div class="gmail_quote">On Thu, Jan 20, 2011 at 3:30 PM, Jayesh Krishna <span dir="ltr"><<a href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
You should be able to run an MPI process as a singleton process (without mpiexec). Try running your program from the command prompt without mpiexec and let us know if you have any issues.<br>
<br>
(PS: The singleton process should also be able to spawn MPI processes.)<br>
Regards,<br>
Jayesh<br>
<div><div></div><div class="h5"><br>
----- Original Message -----<br>
From: "Prashanth" <<a href="mailto:prashanth.dumpuri@gmail.com">prashanth.dumpuri@gmail.com</a>><br>
To: <a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
Sent: Thursday, January 20, 2011 2:40:59 PM<br>
Subject: [mpich-discuss] using mpiexec as a dll<br>
<br>
<br>
All,<br>
I have to integrate my code which requires MPICH2 - into an existing project as a dll. Ideally I would not want to spawn a child process for my code. In other words I do not want my code's dll to run mpiexec.exe as a background or child process. Is there a way to execute a MPI program without having to invoke mpiexec.exe? (I'm running MPICH2 on Windows XP)<br>
Thanks<br>
Prashanth<br>
</div></div>_______________________________________________<br>
mpich-discuss mailing list<br>
<a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
</blockquote></div><br></div>