<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE">Hello everybody!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE">First of all thank you very much for your endless answers. I have read and learned a lot about MPI.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE">But I am discovering some problems with a MPI communication between two hosts. I am using the cpi example to exclude programming errors
 from my side.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE">On both hosts mpich-3.0.4 is installed.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE">I can access hostname2 from hostname1 through the ports xx:yy (in total 6 ports) using the command  “ssh hostname2 –p <port>”<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE">The other way (from hostname2 to hostname1) I get an “connection refused” if I try “ssh hostname1 –p <port>” (same ports as before). But
 my admin assures me that the ports in the firewall are open for communication, only ssh is not listening. This should mpi do when starting up the tasks.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE">Since the default port 22 does not work for ssh on hostname1, I configured my ~/.ssh/config (on hostname1) as followed to connect over
 port xx.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE">Host hostname2<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE">      Hostname hostname2<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE">      PORT xx<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE">On hostname2 the ~/.ssh/config is empty since I can ssh  through port 22.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE">Before starting the process I restrict the port range as followed :<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:35.4pt"><span lang="FR" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE">export MPIEXEC_PORT_RANGE=xx:yy</span><span lang="FR" style="font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE">Starting the process:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE">           
</span><span lang="FR" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE">mpiexec  -f hostfile -np 2  ./cpi<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE">Hostfile contains:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE">      Hostname1<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:35.4pt"><span lang="FR" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE">Hostname2<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE">This is the error output when running the example:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE">Process 0 of 2 is on hostname1<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE">Process 1 of 2 is on hostname2<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE">Fatal error in PMPI_Reduce: A process has failed, error stack:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE">PMPI_Reduce(1217)...............: MPI_Reduce(sbuf=0xbfca84f8, rbuf=0xbfca84f0, count=1, MPI_DOUBLE, MPI_SUM, root=0,
 MPI_COMM_WORLD) failed<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE">MPIR_Reduce_impl(1029)..........:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE">MPIR_Reduce_intra(835)..........:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE">MPIR_Reduce_binomial(144).......:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE">MPIDI_CH3U_Recvq_FDU_or_AEP(667): Communication error with rank 1<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE">Running cpi only on hostname1 or hostname2 is working without problems<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE">Process 0 of 2 is on
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE">hostname1</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE">Process 1 of 2 is on
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE">hostname1</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE">pi is approximately 3.1415926544231318, Error is 0.0000000008333387<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE">wall clock time = 0.000408<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE">I hope I provided enough information. Does anyone has an idea what setting is not correct?<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE">Best regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE">Josef<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</body>
</html>