Dear Chan<br><br>Sorry to bother you again and excuse me for my ignorance - <br><br>does that means the same code (count.c), if I compile as - <br><br>mpicc count.c<br><br>will be compiled in MPI version? and I don't have to change the source code??<br>
<br>Basak<br><br><br><br><div class="gmail_quote">On 27 May 2011 20:07, Anthony Chan <span dir="ltr"><<a href="mailto:chan@mcs.anl.gov">chan@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
count.c is a serial program, so it won't use MPI's multiprocessing support<br>
You need to make count.c as MPI program. Recent MPICH2<br>
uses hydra as default process manager, so you don't need to use<br>
mpd or mpdboot,... See<br>
<br>
<a href="http://wiki.mcs.anl.gov/mpich2/index.php/Using_the_Hydra_Process_Manager" target="_blank">http://wiki.mcs.anl.gov/mpich2/index.php/Using_the_Hydra_Process_Manager</a><br>
<br>
A.Chan<br>
<div><div></div><div class="h5"><br>
----- Original Message -----<br>
> Hi,<br>
><br>
> I have tried to installed recent version of MPICH2 in Scientific Linux<br>
> 6.<br>
> The machine contains 2 Xeon X5650 processors (each having 6 cores).<br>
> Apparently I was able to install MPICH2 without any problem (thanks<br>
> for the<br>
> wonderful installation guide). "which mpiexec" and "which mpicc" show<br>
> the<br>
> correct PATH.<br>
><br>
> mpiexec -n 2 ./count.out<br>
><br>
> while running this homemade small counting program (count.c attached<br>
> here),<br>
> system monitor shows only one core (not even one processor) is taking<br>
> the<br>
> entire load. count.c was compiled using gcc (not mpigcc).<br>
><br>
> Also, I found that the commands like mpd or mpdboot or mpdtrace<br>
> returns<br>
> "Command not found".<br>
><br>
> I am attaching here the c.txt, m.txt (as advised in the guides) also<br>
> the<br>
> small counting program (count.c).<br>
><br>
> It will be of great help if anyone can show me the root of the problem<br>
> and<br>
> perhaps the solution.<br>
><br>
> Regards,<br>
><br>
> C. B. Basak<br>
><br>
</div></div>> _______________________________________________<br>
> mpich-discuss mailing list<br>
> <a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
> <a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
_______________________________________________<br>
mpich-discuss mailing list<br>
<a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
</blockquote></div><br>