[mpich-discuss] Running problem with MPICH2

Chandra Bhanu Basak cbbasak at gmail.com
Fri May 27 10:32:26 CDT 2011


Dear Chan

Sorry to bother you again and excuse me for my ignorance -

does that means the same code (count.c), if I compile as -

mpicc count.c

will be compiled in MPI version? and I don't have to change the source
code??

Basak



On 27 May 2011 20:07, Anthony Chan <chan at mcs.anl.gov> wrote:

>
> count.c is a serial program, so it won't use MPI's multiprocessing support
> You need to make count.c as MPI program. Recent MPICH2
> uses hydra as default process manager, so you don't need to use
> mpd or mpdboot,...  See
>
> http://wiki.mcs.anl.gov/mpich2/index.php/Using_the_Hydra_Process_Manager
>
> A.Chan
>
> ----- Original Message -----
> > Hi,
> >
> > I have tried to installed recent version of MPICH2 in Scientific Linux
> > 6.
> > The machine contains 2 Xeon X5650 processors (each having 6 cores).
> > Apparently I was able to install MPICH2 without any problem (thanks
> > for the
> > wonderful installation guide). "which mpiexec" and "which mpicc" show
> > the
> > correct PATH.
> >
> > mpiexec -n 2 ./count.out
> >
> > while running this homemade small counting program (count.c attached
> > here),
> > system monitor shows only one core (not even one processor) is taking
> > the
> > entire load. count.c was compiled using gcc (not mpigcc).
> >
> > Also, I found that the commands like mpd or mpdboot or mpdtrace
> > returns
> > "Command not found".
> >
> > I am attaching here the c.txt, m.txt (as advised in the guides) also
> > the
> > small counting program (count.c).
> >
> > It will be of great help if anyone can show me the root of the problem
> > and
> > perhaps the solution.
> >
> > Regards,
> >
> > C. B. Basak
> >
> > _______________________________________________
> > mpich-discuss mailing list
> > mpich-discuss at mcs.anl.gov
> > https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
> _______________________________________________
> 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/20110527/d34befc4/attachment.htm>


More information about the mpich-discuss mailing list