<div>If you use -f to specify hosts to use, the file machinefile in your case has to be exist.</div>
<div>Use mpiexec to see all options.<br><br></div>
<div class="gmail_quote">On Thu, May 3, 2012 at 5:22 PM, O&#39;Sullivan, Niall (HMRC) <span dir="ltr">&lt;<a href="mailto:n.osullivan@ucc.ie" target="_blank">n.osullivan@ucc.ie</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">Thank you for your response.<br><br>The file machinefile is not in /temp/hmrc/mpich2-1.4.1p1, see below for directory listing:<br>
<br>hmrc@linuxadmin-Vostro-3550:/tmp/hmrc/mpich2-1.4.1p1$ ls -a<br>.   bin         config.status  c.txt  examples   FC=ifort  lib       mi.txt   mpich2-doxygen  share  test<br>..  config.log  config.system  doc    F77=ifort  include   Makefile  .mpich2  m.txt           src<br>
<br>The command mpiexec -n 5 ./examples/cpi seems to work correctly, as follows.<br><br>hmrc@linuxadmin-Vostro-3550:/tmp/hmrc/mpich2-1.4.1p1$ mpiexec -n 5 ./examples/cpi<br>Process 0 of 5 is on linuxadmin-Vostro-3550<br>Process 3 of 5 is on linuxadmin-Vostro-3550<br>
Process 4 of 5 is on linuxadmin-Vostro-3550<br>Process 1 of 5 is on linuxadmin-Vostro-3550<br>Process 2 of 5 is on linuxadmin-Vostro-3550<br>pi is approximately 3.1415926544231230, Error is 0.0000000008333298<br>wall clock time = 0.000359<br>
<br>Does this mean that mpich2 has been installed correctly and appears to be working?<br>
<div class="im HOEnZb"><br>Best regards,<br>Niall O&#39;Sullivan<br><br><br><br><br></div>
<div class="HOEnZb">
<div class="h5">-----Original Message-----<br>From: <a href="mailto:mpich-discuss-bounces@mcs.anl.gov">mpich-discuss-bounces@mcs.anl.gov</a> on behalf of Ju JiaJia<br>Sent: Thu 5/3/2012 9:59 AM<br>To: <a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
Subject: Re: [mpich-discuss] Compiling mpich2 using Intel Fortran Compilerv12<br><br>Do you have file machinefile in your /tmp/hmrc/mpich2-1.4.1p1 ? And what&#39;s<br>inside?<br>Since you run on one node, you can try  this: mpiexec -n 5 ./examples/cpi<br>
<br>On Thu, May 3, 2012 at 4:38 PM, O&#39;Sullivan, Niall (HMRC) &lt;<a href="mailto:n.osullivan@ucc.ie">n.osullivan@ucc.ie</a><br>&gt; wrote:<br><br>&gt; Thank you all for your responses.<br>&gt;<br>&gt; The installer guide instructions in section 2.2 were followed and<br>
&gt; completed up as far as which mpicc and which mpiexec, these outputs as<br>&gt; follows:<br>&gt;<br>&gt; which mpicc<br>&gt; /home/hmrc/mpich2-install/bin/mpicc<br>&gt; which mpiexec<br>&gt; /home/hmrc/mpich2-install/bin/mpiexec<br>
&gt;<br>&gt; The installation is on a single PC so steps 9 and 10 were skipped.<br>&gt;<br>&gt; An error arose in response to step 11 after entering the command mpiexec<br>&gt; -n 5 -f machinefile ./examples/cpi, see below:<br>
&gt;<br>&gt; hmrc@linuxadmin-Vostro-3550:/tmp/hmrc/mpich2-1.4.1p1$ mpiexec -n 5 -f<br>&gt; machinefile ./examples/cpi<br>&gt;<br>&gt; [mpiexec@linuxadmin-Vostro-3550] HYDU_parse_hostfile<br>&gt; (/home/hmrc/Mpich2/mpich2-1.4.1p1/src/pm/hydra/utils/args/args.c:303):<br>
&gt; unable to open host file: machinefile<br>&gt; [mpiexec@linuxadmin-Vostro-3550] mfile_fn<br>&gt; (/home/hmrc/Mpich2/mpich2-1.4.1p1/src/pm/hydra/ui/mpich/utils.c:223):<br>&gt; error parsing hostfile<br>&gt; [mpiexec@linuxadmin-Vostro-3550] match_arg<br>
&gt; (/home/hmrc/Mpich2/mpich2-1.4.1p1/src/pm/hydra/utils/args/args.c:115):<br>&gt; match handler returned error<br>&gt; [mpiexec@linuxadmin-Vostro-3550] HYDU_parse_array<br>&gt; (/home/hmrc/Mpich2/mpich2-1.4.1p1/src/pm/hydra/utils/args/args.c:140):<br>
&gt; argument matching returned error<br>&gt; [mpiexec@linuxadmin-Vostro-3550] parse_args<br>&gt; (/home/hmrc/Mpich2/mpich2-1.4.1p1/src/pm/hydra/ui/mpich/utils.c:1387):<br>&gt; error parsing input array<br>&gt; [mpiexec@linuxadmin-Vostro-3550] HYD_uii_mpx_get_parameters<br>
&gt; (/home/hmrc/Mpich2/mpich2-1.4.1p1/src/pm/hydra/ui/mpich/utils.c:1438):<br>&gt; unable to parse user arguments<br>&gt;<br>&gt; The various directories and commands used during the installation are as<br>&gt; follows:<br>
&gt;<br>&gt; files unpacked to : /home/hmrc/Mpich2/mpich2-1.4.1p1<br>&gt; installation directory : /home/hmrc/mpich2-install<br>&gt; build directory : /tmp/hmrc/mpich2-1.4.1p1<br>&gt;<br>&gt; configure command : /home/hmrc/Mpich2/mpich2-1.4.1p1/configure<br>
&gt; --prefix=/home/hmrc/mpich2-install |&amp; tee c.txt F77=ifort FC=ifort<br>&gt; build mpich2: make 2&gt;&amp;1 | tee m.txt<br>&gt; install mpich2 commands: make install 2&gt;&amp;1 | tee mi.txt<br>&gt; add bin subdirectory to path: PATH=/home/hmrc/mpich2-install/bin:$PATH ;<br>
&gt; export PATH<br>&gt;<br>&gt; All of these completed without error until an attempt was made to run an<br>&gt; MPI job with mpiexec, see details above.<br>&gt;<br>&gt; Any suggestions appreciated.<br>&gt;<br>&gt; Best regards,<br>
&gt; Niall O&#39;Sullivan<br>&gt;<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; mpich-discuss mailing list     <a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
&gt; To manage subscription options or unsubscribe:<br>&gt; <a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>&gt;<br><br><br>
</div></div><br>_______________________________________________<br>mpich-discuss mailing list     <a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>To manage subscription options or unsubscribe:<br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br><br></blockquote></div><br>