[mpich-discuss] using mpiexec as a dll

Jayesh Krishna jayesh at mcs.anl.gov
Mon Jan 24 16:41:21 CST 2011


Hi,
 You can take a look at MPI Dynamic processes (MPI_Comm_spawn()) to spawn additional processes from your MPI process. Is that what you are looking for ?

Regards,
Jayesh

----- Original Message -----
From: "Prashanth" <prashanth.dumpuri at gmail.com>
To: "Jayesh Krishna" <jayesh at mcs.anl.gov>, mpich-discuss at mcs.anl.gov
Sent: Monday, January 24, 2011 4:22:06 PM
Subject: Re: [mpich-discuss] using mpiexec as a dll

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 



More information about the mpich-discuss mailing list