[mpich-discuss] MPI on two machines (HYDU_sock_connect (./utils/sock/sock.c:171): unable to get host address for ... )

Piotr Cal piotr.cal at pwr.wroc.pl
Fri Jun 8 09:43:07 CDT 2012


Hi,

I have a problem with runing mpi program on few machines. First I try to test MPI configuration only on my computer (name: aristo-linux-PC) and on virtual machine (VirtualBox) (name: image-laptop).
On aristo-linux-PC I have Ubuntu 11.10 , and on image-laptop 10.04

I manualy install MPICH2-1.4.1p1 on both machines, and after puting SHEL$ mpiexec -info i get folowing information:
piotrek at aristo-linux-PC:~$ mpiexec -info
HYDRA build details:
    Version:                                 1.4.1p1
    Release Date:                            Thu Sep  1 13:53:02 CDT 2011
....

Only one diference is that on virtual machine I disable fortran compiler.
MPICH2 is located in /usr/local/mpich2/ directory on both machines
Both machines have same named accouts (name: piotrek) and passwords.
I configure ssh conections in way that  when I put ssh ip_address_second_machines, I can establish connection (without password)
Now when I try to run any program on both machines I have problem:
I write: SHEL$ mpiexec -f hostfile -n 4 hostname  (hostname is a simple linux program to test if its work)

piotrek at aristo-linux-PC:~$ mpiexec -f ./hostfile -n 4 hostname
[proxy:0:0 at image-laptop] HYDU_sock_connect (./utils/sock/sock.c:171): unable to get host address for aristo-linux-PC (1)
[proxy:0:0 at image-laptop] main (./pm/pmiserv/pmip.c:209): unable to connect to server aristo-linux-PC at port 50234 (check for firewalls!)

hostfile consist:

192.168.0.134

it is address of image-laptop.

What I need to do to siply run MPI program? Do I need additional software or add something in hostfile file. I check firewall by put:
piotrek at aristo-linux-PC:~$ sudo iptables -L -n
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
piotrek at aristo-linux-PC:~$ hostname
aristo-linux-PC

And its ok.

I will be greatfull for any help.

Best regards,
Piotrek








More information about the mpich-discuss mailing list