[mpich-discuss] Not able to run MPI program parallely...

Pavan Balaji balaji at mcs.anl.gov
Tue May 1 08:53:20 CDT 2012


In the previous error message you sent, all processes were started on 
beowulf.master as well, which means you didn't set the HYDRA_HOST_FILE 
correctly.  What exactly is the error that you are seeing *after* 
setting the HYDRA_HOST_FILE variable?

  -- Pavan

On 05/01/2012 08:51 AM, Albert Spade wrote:
> Yes it is HYDRA_HOST_FILE sorry for typo...
> Also when I run ./cpi without setting hostfile, on single machine it
> works fine.
>   Here is its sample output:
>
> [root at beowulf ~]# mpiexec -n 4 /opt/mpich2-1.4.1p1/examples/./cpi
> Process 0 of 4 is on beowulf.master
> Process 3 of 4 is on beowulf.master
> Process 2 of 4 is on beowulf.master
> Process 1 of 4 is on beowulf.master
> pi is approximately 3.1415926544231239, Error is 0.0000000008333307
> wall clock time = 0.000333
> [root at beowulf ~]#
>
> On Tue, May 1, 2012 at 7:13 PM, Pavan Balaji <balaji at mcs.anl.gov
> <mailto:balaji at mcs.anl.gov>> wrote:
>
>
>     On 05/01/2012 05:30 AM, Albert Spade wrote:
>
>         I also set environment for Hydra process manager by adding
>         export HYDRA_FILE=/root/hosts
>         in .bashrc file in /root
>
>
>     Did you mean to set HYDRA_HOST_FILE?
>
>     Can you try running ./cpi without setting the HYDRA_HOST_FILE first?
>
>       -- Pavan
>
>     --
>     Pavan Balaji
>     http://www.mcs.anl.gov/~balaji <http://www.mcs.anl.gov/%7Ebalaji>
>
>

-- 
Pavan Balaji
http://www.mcs.anl.gov/~balaji


More information about the mpich-discuss mailing list