[mpich-discuss] Running MPI jobs without mpiexec

Amar K. Patel PATEL_AMAR_K at cat.com
Thu Aug 4 11:35:58 CDT 2011


I have  MPI program that runs fine when it started with the command 
mpiexec -n # myCode1.exe. I now need to call myCode1 from another code 
(say myCode2) in such a way that myCode1 is a dll file which is loaded and 
called when myCode2 is being executed. myCode2 is started without using 
mpiexec commad. 

With this new setup I would like to call myCode1.dll and be able to use 
the MPI features that have been embedded in it such that myCode1.dll can 
be run on more than one CPU. Is such a thing possible ? If so, then I 
would appreciate if someone could point me to a documentation or an 
example that illustrates how to implement the changes needed in myCode1 
and/or myCode2. 

Here is an crude version of myCode1 and myCode2 that I am using. 

void myCode1()
        int rank;
        MPI_Init(x, x);
        MPI_Comm_rank(MPI_COMM_WORLD, &rank);

int myCode2(int argc, char **argv)
return 0;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20110804/cb010c03/attachment.htm>

More information about the mpich-discuss mailing list