[mpich-discuss] Help: MPICH for a beginner
Michele Rosso
michele.rosso84 at gmail.com
Tue Jul 13 12:51:45 CDT 2010
Ok, both the commands
% mpiexec -np 4 hostname
% mpiexec -np 4 ls
work perfectly.
I am sure in my code there are no lines like:
if (my_rank is 0)
print(...)
and besides it works as expected when it runs on the supercomputer.
I guess I made a mistake somewhere in the settings at this point.
Particularly, how can I avoid to type "./" when invoking an executable?
Is it possible that the output is not redirected to the shell opened in
folder when I am working on?
Thank you for your help.
Michele
On Tue, 2010-07-13 at 11:59 -0500, Pavan Balaji wrote:
> On 07/13/2010 11:47 AM, Michele Rosso wrote:
> > 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?
>
> Are you sure your program is not doing something like:
>
> if (my_rank is 0)
> print(...)
>
> You can try some other program, maybe "ls" or "hostname":
>
> % mpiexec -np 4 hostname
>
> % mpiexec -np 4 ls
>
> This should give you a separate output for each process.
>
> -- Pavan
>
More information about the mpich-discuss
mailing list