<div dir="ltr">Thanks a lot guys, all my issues are solved:<br><br><pre><code>root@ubuntu:/home# mpiexec -f hosts.cfg -n 4 ./hello
Hello world from process 1 running on PC1 of 4
Hello world from process 3 running on PC1 of 4
Hello world from process 2 running on PC2 of 4
Hello world from process 0 running on PC2 of 4<br><br>:)<br></code></pre> </div><div class="gmail_extra"><br><br><div class="gmail_quote">On 24 October 2013 09:43, heshsham basit <span dir="ltr"><<a href="mailto:hf.basit1@gmail.com" target="_blank">hf.basit1@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>I get this on both the machines:<br><br><br>root@ubuntu:/home/# getent hosts ubuntu<br>192.168.1.4 ubuntu<br>
root@ubuntu:/home/# getent hosts hesh<br>192.168.1.5 hesh<br>root@ubuntu:/home/# <br>
</div><div>which is expected- am I right? <br></div> <br></div></div> (one of my IP address changed as I connected to a different WLAN)</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">
On 24 October 2013 09:02, Reuti <span dir="ltr"><<a href="mailto:reuti@staff.uni-marburg.de" target="_blank">reuti@staff.uni-marburg.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Am 24.10.2013 um 12:05 schrieb heshsham basit:<br>
<div><br>
> Thanks a lot for your replies.<br>
> I followed the instructions given here<br>
> <a href="http://wiki.mpich.org/mpich/index.php/Using_the_Hydra_Process_Manager1" target="_blank">wiki.mpich.org/mpich/index.php/Using_the_Hydra_Process_Manager1</a><br>
><br>
> for running MPI program on multiple machines:<br>
><br>
> My master node is : 192.168.1.4<br>
> My client is: 192.168.1.6<br>
<br>
</div>You defined them both on both machines in /etc/hosts? What should give a valid reply is:<br>
<br>
$ getent hosts ubuntu<br>
192.168.1.4 ubuntu<br>
$ getent hosts hesh<br>
192.168.1.6 hesh<br>
<br>
resp. the on the other machine.<br>
<span><font color="#888888"><br>
-- Reuti<br>
</font></span><div><div><br>
<br>
> I gave the following command from 192.168.1.4<br>
><br>
> root@ubuntu:/home# mpiexec -f hosts.cfg -n 4 hello<br>
> <a href="mailto:root@192.168.1.6" target="_blank">root@192.168.1.6</a>'s password:<br>
> [proxy:0:0@hesh] HYDU_sock_connect (./utils/sock/sock.c:171): unable to get host address for ubuntu (1)<br>
> [proxy:0:0@hesh] main (./pm/pmiserv/pmip.c:209): unable to connect to server ubuntu at port 42104 (check for firewalls!)<br>
><br>
> Why I am getting there errors?<br>
><br>
> Both the machines have locally generated executable hello. Do I must have same executable copied in both machines?<br>
><br>
> On master node 192.168.1.4<br>
> root@ubuntu:/home# ls<br>
> acme hello hosts.cfg mpi_hello.c<br>
><br>
> On client 192.168.1.6<br>
><br>
> root@hesh:/home#ls<br>
> hesh hello<br>
><br>
> hello in each machine sis generated after compilation locally.<br>
><br>
><br>
><br>
> On 22 October 2013 12:51, Jeff Hammond <<a href="mailto:jeff.science@gmail.com" target="_blank">jeff.science@gmail.com</a>> wrote:<br>
> See <a href="http://wiki.mpich.org/mpich/index.php/Using_the_Hydra_Process_Manager" target="_blank">http://wiki.mpich.org/mpich/index.php/Using_the_Hydra_Process_Manager</a><br>
> for how to launch MPI across multiple machines. You do not need to<br>
> use any special hardware adapter; any Ethernet card should provide<br>
> sufficient TCP/IP support.<br>
><br>
> Jeff<br>
><br>
> On Tue, Oct 22, 2013 at 9:23 AM, Pavan Balaji <<a href="mailto:balaji@mcs.anl.gov" target="_blank">balaji@mcs.anl.gov</a>> wrote:<br>
> > Hello,<br>
> ><br>
> > You'll need to either install mpich on a shared file system (such as NFS) or individually on each of the nodes. The README file in the mpich tarball should have most of this information.<br>
> ><br>
> > -- Pavan<br>
> ><br>
> > On Oct 22, 2013, at 8:26 AM, heshsham basit wrote:<br>
> ><br>
> >> Hi,<br>
> >><br>
> >> I did some experimentation with MPICH on windows, and recently came to know that there is no support for Windows now.<br>
> >> I am now shifting to Ubuntu. I was successful in installing MPICH2 and running my first MPI program on a single machine.<br>
> >><br>
> >> Now I want to run my code on multiple PCs. How do I install MPI in a LAN ? What are the additional requirement if any? Do I need any specific hardware -network adapter My card details are as under:<br>
> >><br>
> >> root@ubuntu:/home# lspci -nnk | grep -i net -A2<br>
> >> 01:07.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ [10ec:8139] (rev 10)<br>
> >> Subsystem: Hewlett-Packard Company Device [103c:301d]<br>
> >> Kernel driver in use: 8139too<br>
> >><br>
> >><br>
> >> Most of my machines are having this type of card and are connected in LAN.<br>
> >> Really appreciate for any pointers to appropriate document or suggestions.<br>
> >><br>
> >><br>
> >> Thanks and regards,<br>
> >><br>
> >><br>
> >><br>
> >><br>
> >> _______________________________________________<br>
> >> discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a><br>
> >> To manage subscription options or unsubscribe:<br>
> >> <a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br>
> ><br>
> > --<br>
> > Pavan Balaji<br>
> > <a href="http://www.mcs.anl.gov/~balaji" target="_blank">http://www.mcs.anl.gov/~balaji</a><br>
> ><br>
> > _______________________________________________<br>
> > discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a><br>
> > To manage subscription options or unsubscribe:<br>
> > <a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br>
><br>
><br>
><br>
> --<br>
> Jeff Hammond<br>
> <a href="mailto:jeff.science@gmail.com" target="_blank">jeff.science@gmail.com</a><br>
> _______________________________________________<br>
> discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a><br>
> To manage subscription options or unsubscribe:<br>
> <a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br>
><br>
> _______________________________________________<br>
> discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a><br>
> To manage subscription options or unsubscribe:<br>
> <a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br>
<br>
_______________________________________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>