[mpich-discuss] Can I run MPI program without mpirun/mpiexec?

chan at mcs.anl.gov chan at mcs.anl.gov
Mon Nov 23 23:07:29 CST 2009

Mario might have refered to MPICH-1 who uses command line arguments to
help start the parallel program.  MPICH2 does not mess with command line
arguments (AFAIK).  In any case, you need mpiexec to launch multiple
processes.  Is your simulator a single process simulator or is it capable
to run multiple processes simultaneously ?

----- "junli gu" <gujunli at gmail.com> wrote:

> I did as what you said., get the value of argc and argv[],  set them
> as
> global variables  in the source code,also set the number pf processes
> as a
> global variable,

> 2009/11/23 Mário Costa <mario.silva.costa at gmail.com>
> > Hi,
> >
> > I have never done it but, I would say try it with mpiexec and print
> > the arv/arc contents then use the values sent by mpiexec to
> initialize
> > them inside your code, then pass them to MPI_Init()  ...
> >
> > Let me know if it works ....
> >
> > Regards,
> > Mário
> >

More information about the mpich-discuss mailing list