[mpich-discuss] using mpiexec as a dll

Prashanth prashanth.dumpuri at gmail.com
Mon Jan 24 16:22:06 CST 2011


Jayesh,
    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.
Thanks
Prashanth

On Thu, Jan 20, 2011 at 3:30 PM, Jayesh Krishna <jayesh at mcs.anl.gov> wrote:

> Hi,
>  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.
>
> (PS: The singleton process should also be able to spawn MPI processes.)
> Regards,
> Jayesh
>
> ----- Original Message -----
> From: "Prashanth" <prashanth.dumpuri at gmail.com>
> To: mpich-discuss at mcs.anl.gov
> Sent: Thursday, January 20, 2011 2:40:59 PM
> Subject: [mpich-discuss] using mpiexec as a dll
>
>
> All,
> 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)
> Thanks
> Prashanth
> _______________________________________________
> mpich-discuss mailing list
> mpich-discuss at mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20110124/c774ecb7/attachment.htm>


More information about the mpich-discuss mailing list