[mpich-discuss] Help: MPICH for a beginner

Michele Rosso michele.rosso84 at gmail.com
Tue Jul 13 11:47:06 CDT 2010


Thanks Pavan for your reply.
I followed the instructions.
At first I got mpd started, then, after I compiled my code through
mpif90, I run the executable by using the command:

mpiexec -np 4 ./filename

This command works properly since I got the results I was expecting, but
I have the feeling that it is still running the serial version of the
code, since in the output (shell) there are only the output lines of the
node 0. Any idea about that?

Thanks you,

Michele 

On Mon, 2010-07-12 at 19:52 -0500, Pavan Balaji wrote:
> You can find instructions to get started in the MPICH2 README.
> 
> You can run multiple processes on a single core machine, but the 
> performance can be quite bad.
> 
>   -- Pavan
> 
> On 07/12/2010 07:38 PM, Michele Rosso wrote:
> > Hi,
> > 
> > I am having my first experience with MPICH.
> > I am working on a MPI-parallel code that is currently running on a
> > supercomputer (i.e. Intrepid).
> > It would be very useful for me to be able to test it (I mean, a reduced
> > version of it, with a very very course computational grid) on the pc in
> > my office, but the latter has a single core CPU (32 bit).
> > If I am not mistaking, it is possible to run a parallel code on a single
> > core machine, by running many processes simultaneously on the same core.
> > 
> > I need to know how to do that ( i.e.,
> > how to use MPICH to tell my machine that my code must run on 4 processes
> > for example, one of which is the master one; how to compile and to run
> > it etc etc  ).
> > Is there anyone who may help me? I use Ubuntu 10.04 32 bit and the code
> > is parallelized with a master-slaves technique.
> > 
> > Thanks in advance,
> > 
> > Michele
> > 
> > _______________________________________________
> > 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