<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Yes it works simply as mpiexec -n 4 hostname. Prints out Pi01 four times.</div><div><br></div><div>Have the 4 Pis connected to a 5 port switch, going a 24 port switch and then Asus RT66N roter.</div><div><br></div><div>MPICH installed is 3.1. Only downloaded and installed the one version.</div><div><br></div><div>Thanks.</div><div><br></div><div>Ken<br><br>Sent from my iPad</div><div><br>On Apr 2, 2015, at 10:07 PM, Antonio J. Peña <<a href="mailto:apenya@mcs.anl.gov">apenya@mcs.anl.gov</a>> wrote:<br><br></div><blockquote type="cite"><div>
<div class="moz-cite-prefix"><br>
That should be fine. Let's start from the basics: does it work
without the "-f machinefile" parameter? if it does, it means that
you have some connection problem (e.g.: do you have a firewall
installed?); otherwise, there's something wrong in the
installation (e.g.: multiple MPI implementations installed).<br>
<br>
BTW, which MPICH version are you using?<br>
<br>
<br>
On 04/02/2015 08:52 PM, Ken Miller wrote:<br>
</div>
<blockquote cite="mid:DB53281C-7028-4D03-8D1D-5763F26D353D@gmail.com" type="cite">
<div>Antonio,</div>
<div><br>
</div>
<div>I can ssh without having to enter a password from:</div>
<div>Pi01 to Pi02</div>
<div>Pi01 to Pi03</div>
<div>Pi01 to Pi04</div>
<div><br>
</div>
<div>Also from each Pi back to Pi01</div>
<div><br>
</div>
<div>However, I'm asked for a password from Pi04 to Pi03 and Pi02,
etc.</div>
<div><br>
</div>
<div>Does that matter since I am running the mpiexec command from
Pi01 only?</div>
<div><br>
</div>
<div>Thanks.</div>
<div><br>
</div>
<div>Ken<br>
<br>
Sent from my iPad</div>
<div><br>
On Apr 2, 2015, at 9:29 PM, Antonio J. Peña <<a moz-do-not-send="true" href="mailto:apenya@mcs.anl.gov">apenya@mcs.anl.gov</a>>
wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<div class="moz-cite-prefix"><br>
Well, I meant to suggest to actually check if that had the
expected effects, so rephrasing what I said: can you check
if you can ssh without being asked for a password to all
nodes from all nodes, using exactly what you have in the
host file (i.e.: ip addresses)?<br>
<br>
<br>
On 04/02/2015 08:20 PM, Ken Miller wrote:<br>
</div>
<blockquote cite="mid:2B903112-AC13-4D6D-82E2-9872F5AE5225@gmail.com" type="cite"> Antonio,
<div><br>
</div>
<div>Thanks for the quick response.</div>
<div><br>
</div>
<div>I did do the following on each of the other three Pis:</div>
<div><br>
</div>
<div>On Pi02:</div>
<div>ssh-keygen</div>
<div>cd .ssh</div>
<div>cd id_rsa.pub pi02</div>
<div>scp 192.168.2.121:/home/pi/.ssh/p01 .</div>
<div>cat pi01>>authorized_keys</div>
<div><br>
</div>
<div>and then I copied each from the other three Pis to Pi01
and cat those to the authorized_keys on Pi01</div>
<div><br>
</div>
<div>Is that what you are referring to?</div>
<div><br>
</div>
<div>If not, do you mind pointing me in the right direction?</div>
<div><br>
</div>
<div>Thanks in advance.</div>
<div><br>
</div>
<div>Ken</div>
<div><br>
</div>
<div>
<div>
<div>On Apr 2, 2015, at 9:09 PM, Antonio J. Peña <<a moz-do-not-send="true" href="mailto:apenya@mcs.anl.gov">apenya@mcs.anl.gov</a>>
wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix"><br>
Hi Ken,<br>
<br>
Please check that you have password-less ssh
connectivity between the nodes.<br>
<br>
Best,<br>
Antonio<br>
<br>
<br>
On 04/02/2015 07:33 PM, Ken Miller wrote:<br>
</div>
<blockquote cite="mid:B9583627-EF54-49E4-AEA4-FD4F3FC874E5@gmail.com" type="cite"> Hello,
<div><br>
</div>
<div>I am hoping someone might be able to point
out what I am doing wrong. I have setup a
Raspberry Pi cluster by going through a couple
tutorials. The last step is to use MPI to test
the cluster. Everything was going great until I
ran the following command:</div>
<div><br>
</div>
<div>
<div style="margin: 0px; font-size: 11px;
font-family: Menlo;">mpiexec -f machinefile -n
4 hostname</div>
</div>
<div style="margin: 0px; font-size: 11px;
font-family: Menlo;"><br>
</div>
<div style="margin: 0px; font-size: 11px;
font-family: Menlo;">My machinefile contains the
following:</div>
<div style="margin: 0px; font-size: 11px;
font-family: Menlo;"><br>
</div>
<div style="margin: 0px;">
<div style="font-family: Menlo; font-size: 11px;
margin: 0px;"><span style="color: #34bd26"><b>pi@Pi01</b></span>
<span style="color: #5330e1"><b>~/mpi_test $</b></span>
cat machinefile</div>
<div style="font-family: Menlo; font-size: 11px;
margin: 0px;">192.168.2.121</div>
<div style="font-family: Menlo; font-size: 11px;
margin: 0px;">192.168.2.122</div>
<div style="font-family: Menlo; font-size: 11px;
margin: 0px;">192.168.2.123</div>
<div style="font-family: Menlo; font-size: 11px;
margin: 0px;">192.168.2.124</div>
<div style="font-family: Menlo; font-size: 11px;
margin: 0px;"><br>
</div>
<div style="font-family: Menlo; font-size: 11px;
margin: 0px;">But, when I run the mpiexec
command, I get the following error:</div>
<div style="font-family: Menlo; font-size: 11px;
margin: 0px;"><br>
</div>
<div style="margin: 0px;">
<div style="font-family: Menlo; font-size:
11px; margin: 0px;"><span style="color:
#34bd26"><b>pi@Pi01</b></span> <span style="color: #5330e1"><b>~/mpi_test $</b></span>
mpiexec -f machinefile -n 4 hostname</div>
<div style="font-family: Menlo; font-size:
11px; margin: 0px;">Pi01</div>
<div style="font-family: Menlo; font-size:
11px; margin: 0px;">[mpiexec@Pi01]
control_cb
(/home/pi/mpich2/mpich-3.1/src/pm/hydra/pm/pmiserv/pmiserv_cb.c:200):
assert (!closed) failed</div>
<div style="font-family: Menlo; font-size:
11px; margin: 0px;">[mpiexec@Pi01]
HYDT_dmxu_poll_wait_for_event
(/home/pi/mpich2/mpich-3.1/src/pm/hydra/tools/demux/demux_poll.c:76):
callback returned error status</div>
<div style="font-family: Menlo; font-size:
11px; margin: 0px;">[mpiexec@Pi01]
HYD_pmci_wait_for_completion
(/home/pi/mpich2/mpich-3.1/src/pm/hydra/pm/pmiserv/pmiserv_pmci.c:198):
error waiting for event</div>
<div style="font-family: Menlo; font-size:
11px; margin: 0px;">[mpiexec@Pi01] main
(/home/pi/mpich2/mpich-3.1/src/pm/hydra/ui/mpich/mpiexec.c:336):
process manager error waiting for completion</div>
<div style="font-family: Menlo; font-size:
11px; margin: 0px; color: rgb(83, 48, 225);"><span style="color: #34bd26"><b>pi@Pi01</b></span><span style=""> </span><b>~/mpi_test $</b><span style=""> </span></div>
<div style="font-family: Menlo; font-size:
11px; margin: 0px; color: rgb(83, 48, 225);"><span style=""><br>
</span></div>
<div style="font-family: Menlo; font-size:
11px; margin: 0px; color: rgb(83, 48, 225);"><span style="">Clearly, I am missing something.
Would appreciate any help in advance.</span></div>
<div style="font-family: Menlo; font-size:
11px; margin: 0px; color: rgb(83, 48, 225);"><span style=""><br>
</span></div>
<div style="font-family: Menlo; font-size:
11px; margin: 0px; color: rgb(83, 48, 225);"><span style="">Thanks.</span></div>
<div style="font-family: Menlo; font-size:
11px; margin: 0px; color: rgb(83, 48, 225);"><span style=""><br>
</span></div>
<div style="font-family: Menlo; font-size:
11px; margin: 0px; color: rgb(83, 48, 225);"><span style="">Ken</span></div>
<div style="font-family: Menlo; font-size:
11px; margin: 0px; color: rgb(83, 48, 225);"><span style=""><br>
</span></div>
<div style="margin: 0px;"><font face="Menlo"><span style="font-size: 11px;">ps. I am
connected to the other Pis evident by
the following ping results. I can also
log into each of the other 3 Pis.</span></font></div>
<div style="margin: 0px;"><font face="Menlo"><span style="font-size: 11px;"><br>
</span></font></div>
<div style="margin: 0px;">
<div style="margin: 0px; font-size: 11px;
font-family: Menlo;">ping 192.168.2.122</div>
<div style="margin: 0px; font-size: 11px;
font-family: Menlo;">PING 192.168.2.122
(192.168.2.122) 56(84) bytes of data.</div>
<div style="margin: 0px; font-size: 11px;
font-family: Menlo;">64 bytes from
192.168.2.122: icmp_req=1 ttl=64
time=0.807 ms</div>
<div style="margin: 0px; font-size: 11px;
font-family: Menlo;">64 bytes from
192.168.2.122: icmp_req=2 ttl=64
time=0.626 ms</div>
<div style="margin: 0px; font-size: 11px;
font-family: Menlo;">64 bytes from
192.168.2.122: icmp_req=3 ttl=64
time=0.614 ms</div>
<div style="margin: 0px; font-size: 11px;
font-family: Menlo;">64 bytes from
192.168.2.122: icmp_req=4 ttl=64
time=0.605 ms</div>
<div style="margin: 0px; font-size: 11px;
font-family: Menlo;">64 bytes from
192.168.2.122: icmp_req=5 ttl=64
time=0.603 ms</div>
<div style="margin: 0px; font-size: 11px;
font-family: Menlo;">^C</div>
<div style="margin: 0px; font-size: 11px;
font-family: Menlo;">--- 192.168.2.122
ping statistics ---</div>
<div style="margin: 0px; font-size: 11px;
font-family: Menlo;">5 packets
transmitted, 5 received, 0% packet loss,
time 4002ms</div>
<div style="margin: 0px; font-size: 11px;
font-family: Menlo;">rtt min/avg/max/mdev
= 0.603/0.651/0.807/0.078 ms</div>
<div style="margin: 0px; font-size: 11px;
font-family: Menlo;"><span style="color:
#34bd26"><b>pi@Pi01</b></span> <span style="color: #5330e1"><b>~/mpi_test $</b></span>
ping 192.168.2.123</div>
<div style="margin: 0px; font-size: 11px;
font-family: Menlo;">PING 192.168.2.123
(192.168.2.123) 56(84) bytes of data.</div>
<div style="margin: 0px; font-size: 11px;
font-family: Menlo;">64 bytes from
192.168.2.123: icmp_req=1 ttl=64
time=0.794 ms</div>
<div style="margin: 0px; font-size: 11px;
font-family: Menlo;">64 bytes from
192.168.2.123: icmp_req=2 ttl=64
time=0.634 ms</div>
<div style="margin: 0px; font-size: 11px;
font-family: Menlo;">64 bytes from
192.168.2.123: icmp_req=3 ttl=64
time=0.628 ms</div>
<div style="margin: 0px; font-size: 11px;
font-family: Menlo;">64 bytes from
192.168.2.123: icmp_req=4 ttl=64
time=0.607 ms</div>
<div style="margin: 0px; font-size: 11px;
font-family: Menlo;">^C</div>
<div style="margin: 0px; font-size: 11px;
font-family: Menlo;">--- 192.168.2.123
ping statistics ---</div>
<div style="margin: 0px; font-size: 11px;
font-family: Menlo;">4 packets
transmitted, 4 received, 0% packet loss,
time 3003ms</div>
<div style="margin: 0px; font-size: 11px;
font-family: Menlo;">rtt min/avg/max/mdev
= 0.607/0.665/0.794/0.081 ms</div>
<div style="margin: 0px; font-size: 11px;
font-family: Menlo;"><span style="color:
#34bd26"><b>pi@Pi01</b></span> <span style="color: #5330e1"><b>~/mpi_test $</b></span>
ping 192.168.2.124</div>
<div style="margin: 0px; font-size: 11px;
font-family: Menlo;">PING 192.168.2.124
(192.168.2.124) 56(84) bytes of data.</div>
<div style="margin: 0px; font-size: 11px;
font-family: Menlo;">64 bytes from
192.168.2.124: icmp_req=1 ttl=64
time=0.787 ms</div>
<div style="margin: 0px; font-size: 11px;
font-family: Menlo;">64 bytes from
192.168.2.124: icmp_req=2 ttl=64
time=0.632 ms</div>
<div style="margin: 0px; font-size: 11px;
font-family: Menlo;">64 bytes from
192.168.2.124: icmp_req=3 ttl=64
time=0.612 ms</div>
<div style="margin: 0px; font-size: 11px;
font-family: Menlo;">^C</div>
<div style="margin: 0px; font-size: 11px;
font-family: Menlo;">--- 192.168.2.124
ping statistics ---</div>
<div style="margin: 0px; font-size: 11px;
font-family: Menlo;">3 packets
transmitted, 3 received, 0% packet loss,
time 2002ms</div>
<div style="margin: 0px; font-size: 11px;
font-family: Menlo;">rtt min/avg/max/mdev
= 0.612/0.677/0.787/0.078 ms</div>
<div style="margin: 0px; font-size: 11px;
font-family: Menlo; color: rgb(83, 48,
225);"><span style="color: #34bd26"><b>pi@Pi01</b></span><span style=""> </span><b>~/mpi_test $</b><span style=""> </span></div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
discuss mailing list <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:discuss@mpich.org">discuss@mpich.org</a>
To manage subscription options or unsubscribe:
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://lists.mpich.org/mailman/listinfo/discuss">https://lists.mpich.org/mailman/listinfo/discuss</a></pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Antonio J. Peña
Postdoctoral Appointee
Mathematics and Computer Science Division
Argonne National Laboratory
9700 South Cass Avenue, Bldg. 240, Of. 3148
Argonne, IL 60439-4847
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:apenya@mcs.anl.gov">apenya@mcs.anl.gov</a>
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.mcs.anl.gov/%7Eapenya">www.mcs.anl.gov/~apenya</a></pre>
</div>
_______________________________________________<br>
discuss mailing list <a moz-do-not-send="true" href="mailto:discuss@mpich.org">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a moz-do-not-send="true" href="https://lists.mpich.org/mailman/listinfo/discuss">https://lists.mpich.org/mailman/listinfo/discuss</a></blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
discuss mailing list <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:discuss@mpich.org">discuss@mpich.org</a>
To manage subscription options or unsubscribe:
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://lists.mpich.org/mailman/listinfo/discuss">https://lists.mpich.org/mailman/listinfo/discuss</a></pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Antonio J. Peña
Postdoctoral Appointee
Mathematics and Computer Science Division
Argonne National Laboratory
9700 South Cass Avenue, Bldg. 240, Of. 3148
Argonne, IL 60439-4847
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:apenya@mcs.anl.gov">apenya@mcs.anl.gov</a>
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.mcs.anl.gov/%7Eapenya">www.mcs.anl.gov/~apenya</a></pre>
</div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>discuss mailing list <a moz-do-not-send="true" href="mailto:discuss@mpich.org">discuss@mpich.org</a></span><br>
<span>To manage subscription options or unsubscribe:</span><br>
<span><a moz-do-not-send="true" href="https://lists.mpich.org/mailman/listinfo/discuss">https://lists.mpich.org/mailman/listinfo/discuss</a></span></div>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
discuss mailing list <a class="moz-txt-link-abbreviated" href="mailto:discuss@mpich.org">discuss@mpich.org</a>
To manage subscription options or unsubscribe:
<a class="moz-txt-link-freetext" href="https://lists.mpich.org/mailman/listinfo/discuss">https://lists.mpich.org/mailman/listinfo/discuss</a></pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Antonio J. Peña
Postdoctoral Appointee
Mathematics and Computer Science Division
Argonne National Laboratory
9700 South Cass Avenue, Bldg. 240, Of. 3148
Argonne, IL 60439-4847
<a class="moz-txt-link-abbreviated" href="mailto:apenya@mcs.anl.gov">apenya@mcs.anl.gov</a>
<a class="moz-txt-link-abbreviated" href="http://www.mcs.anl.gov/~apenya">www.mcs.anl.gov/~apenya</a></pre>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>discuss mailing list <a href="mailto:discuss@mpich.org">discuss@mpich.org</a></span><br><span>To manage subscription options or unsubscribe:</span><br><span><a href="https://lists.mpich.org/mailman/listinfo/discuss">https://lists.mpich.org/mailman/listinfo/discuss</a></span></div></blockquote></body></html>