Yeah. I tried the simple programs, like ls and hostname. They work. For example, "mpiexec -n 4 ls" gives<br>[bash]$ mpiexec -n 4 ls<br>Pi.f90<br>Pi.x<br>hostfile<br>Pi.f90<br>Pi.x<br>hostfile<br>Pi.f90<br>Pi.x<br>
hostfile<br>Pi.f90<br>Pi.x<br>hostfile<br><br>What would be the next check that I should do? Many thanks!<br><br><div class="gmail_quote">On Thu, Mar 8, 2012 at 1:33 PM, Dave Goodell <span dir="ltr"><<a href="mailto:goodell@mcs.anl.gov">goodell@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Can you start simple programs like "ls" or "hostname"? For example "mpiexec -n 2 hostname".<br>
<span class="HOEnZb"><font color="#888888"><br>
-Dave<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Mar 8, 2012, at 10:13 AM CST, Eric Sun wrote:<br>
<br>
> I think I didn't express clearly. I didn't try to use MPD. I think I used the default launcher Hydra. But, I got a hang when using mpiexec to start my MPI code. Can you give me some suggestion on how to check the reason of the hang?<br>
><br>
> Thank you very much!<br>
><br>
> On Thu, Mar 8, 2012 at 10:49 AM, Dave Goodell <<a href="mailto:goodell@mcs.anl.gov">goodell@mcs.anl.gov</a>> wrote:<br>
> MPD is deprecated, use hydra instead: <a href="http://wiki.mcs.anl.gov/mpich2/index.php/Frequently_Asked_Questions#Q:_I_don.27t_like_.3CWHATEVER.3E_about_mpd.2C_or_I.27m_having_a_problem_with_mpdboot.2C_can_you_fix_it.3F" target="_blank">http://wiki.mcs.anl.gov/mpich2/index.php/Frequently_Asked_Questions#Q:_I_don.27t_like_.3CWHATEVER.3E_about_mpd.2C_or_I.27m_having_a_problem_with_mpdboot.2C_can_you_fix_it.3F</a><br>
><br>
> The ".POSIX" warnings are only issues in the old build system. The newer build system (1.5a2 and up) shouldn't have this problem. I would ignore those messages unless they clearly are causing a problem for you.<br>
><br>
> -Dave<br>
><br>
> On Mar 8, 2012, at 9:11 AM CST, Eric Sun wrote:<br>
><br>
> > Hi Good Morning!<br>
> ><br>
> > I did "make testing". It seems similar problem happened. I had a hang. Below is all the screen output from "make testing" before the hang. I'm guessing that it's probably a communication problem. Like in the previous version of MPICH2, I need mpdboot to set up a parallel environment first. But, I have no idea how to check this. I found I don't have mpdboot common in my installation.<br>
> ><br>
> > "Makefile", line 468: warning: .POSIX directive is not first non-comment line.<br>
> > (cd test && make testing)<br>
> > "Makefile", line 67: warning: .POSIX directive is not first non-comment line.<br>
> > (NOXMLCLOSE=YES && export NOXMLCLOSE && cd mpi && make testing)<br>
> > "Makefile", line 111: warning: .POSIX directive is not first non-comment line.<br>
> > ./runtests -srcdir=. -tests=testlist -mpiexec=/gpfs/small/STED/shared/mpich2/pwr5/bin/mpiexec -xmlfile=summary.xml<br>
> > Looking in ./testlist<br>
> > "Makefile", line 78: warning: .POSIX directive is not first non-comment line.<br>
> > Processing directory attr<br>
> > Looking in ./attr/testlist<br>
> ><br>
> ><br>
> > On Thu, Mar 8, 2012 at 8:48 AM, Rajeev Thakur <<a href="mailto:thakur@mcs.anl.gov">thakur@mcs.anl.gov</a>> wrote:<br>
> > This example may have some stdin/stdout issue. Try some other F90 program. Or run "make testing" in the top-level mpich2 directory, which will run the whole test suite (may take an hour).<br>
> ><br>
> > Rajeev<br>
> ><br>
> ><br>
> > On Mar 7, 2012, at 10:40 PM, Eric Sun wrote:<br>
> ><br>
> > > Anthony,<br>
> > ><br>
> > > Changing all compilers to the "_r" version makes the difference. Now I can compile my Pi.f90 with no problem! Thank you very much!<br>
> > ><br>
> > > Now the problem is that when I run the code using "mpiexec -f hostfile -n 4 Pi.x", there is nothing output. It looks like a hang there. I have attached all c.txt, m.txt, mi.txt and config.log files in case you may need them for diagnosis.<br>
> > ><br>
> > > Thanks again!<br>
> > ><br>
> > ><br>
> > > On Wed, Mar 7, 2012 at 10:45 AM, Anthony Chan <<a href="mailto:chan@mcs.anl.gov">chan@mcs.anl.gov</a>> wrote:<br>
> > ><br>
> > > Send us your configure and make output files as stated in README.<br>
> > > Did you try build mpich2 with _r version of compilers ?<br>
> > ><br>
> > > A.Chan<br>
> > ><br>
> > > ----- Original Message -----<br>
> > > > I configure and make MPICH2 using:<br>
> > > > [bash] export CC=xlc<br>
> > > > [bash] export CXX=xlC<br>
> > > > [bash] export F77=xlf<br>
> > > > [bash] export FC=xlf90<br>
> > > > [bash] ./configure --prefix=/gpfs/small/shared/mpich2/pwr5 --with-<br>
> > > > device=ch3:nemesis<br>
> > > > [bash] make<br>
> > > > [bash] make install<br>
> > > ><br>
> > > > Before I compile my Pi.f90, I did:<br>
> > > > [bash] export PATH=/gpfs/small/shared/mpich2/pwr5/bin:$PATH<br>
> > > ><br>
> > > > Then, to compile my code:<br>
> > > > [bash] mpif90 Pi.f90<br>
> > > ><br>
> > > > Thanks for your help!<br>
> > > ><br>
> > > > On Tue, Mar 6, 2012 at 11:54 PM, Rajeev Thakur <<a href="mailto:thakur@mcs.anl.gov">thakur@mcs.anl.gov</a>><br>
> > > > wrote:<br>
> > > ><br>
> > > > > What exact options did you pass to configure, and how exactly are<br>
> > > > > you<br>
> > > > > compiling your program?<br>
> > > > ><br>
> > > > > On Mar 6, 2012, at 10:41 PM, Eric Sun wrote:<br>
> > > > ><br>
> > > > > > Just tried. It didn't work ... The same error.<br>
> > > > > ><br>
> > > > > > On Tue, Mar 6, 2012 at 11:10 PM, Rajeev Thakur<br>
> > > > > > <<a href="mailto:thakur@mcs.anl.gov">thakur@mcs.anl.gov</a>><br>
> > > > > wrote:<br>
> > > > > > Try giving the full path to mpif90.<br>
> > > > > ><br>
> > > > > > On Mar 6, 2012, at 9:51 PM, Eric Sun wrote:<br>
> > > > > ><br>
> > > > > > > Thanks for your quick reply!<br>
> > > > > > ><br>
> > > > > > > Yes. But, I also tried "mpif77" and got the same error.<br>
> > > > > > ><br>
> > > > > > ><br>
> > > > > > > On Tue, Mar 6, 2012 at 10:33 PM, Dave Goodell<br>
> > > > > > > <<a href="mailto:goodell@mcs.anl.gov">goodell@mcs.anl.gov</a>><br>
> > > > > wrote:<br>
> > > > > > > Are you building your application with "mpif90"?<br>
> > > > > > ><br>
> > > > > > > -Dave<br>
> > > > > > ><br>
> > > > > > > On Mar 6, 2012, at 9:15 PM CST, Eric Sun wrote:<br>
> > > > > > ><br>
> > > > > > > > Dear MPICH2 developers and users,<br>
> > > > > > > ><br>
> > > > > > > > I successfully installed mpich2-1.4.1p1 on an IBM Power5 SMP<br>
> > > > > > > > machine<br>
> > > > > running AIX system. The configure line was<br>
> > > > > > > > ./configure --prefix=/install/directory<br>
> > > > > > > > --with-device=ch3:nemesis<br>
> > > > > > > ><br>
> > > > > > > > I had CC=xlc CXX=xlC F77=xlf FC=xlf90<br>
> > > > > > > ><br>
> > > > > > > > "configure" and "make" are quite smooth without error. But<br>
> > > > > > > > when I<br>
> > > > > try to compile a testing MPI code (calculating Pi), I receive the<br>
> > > > > following<br>
> > > > > error message:<br>
> > > > > > > ><br>
> > > > > > > > ** main === End of Compilation 1 ===<br>
> > > > > > > > 1501-510 Compilation successful for file Pi.f90.<br>
> > > > > > > > ld: 0711-317 ERROR: Undefined symbol: .mpi_init<br>
> > > > > > > > ld: 0711-317 ERROR: Undefined symbol: .mpi_comm_rank<br>
> > > > > > > > ld: 0711-317 ERROR: Undefined symbol: .mpi_comm_size<br>
> > > > > > > > ld: 0711-317 ERROR: Undefined symbol: .mpi_type_contiguous<br>
> > > > > > > > ld: 0711-317 ERROR: Undefined symbol: .mpi_type_commit<br>
> > > > > > > > ld: 0711-317 ERROR: Undefined symbol: .mpi_send<br>
> > > > > > > > ld: 0711-317 ERROR: Undefined symbol: .mpi_recv<br>
> > > > > > > > ld: 0711-317 ERROR: Undefined symbol: .mpi_finalize<br>
> > > > > > > ><br>
> > > > > > > > Any suggestion?<br>
> > > > > > > ><br>
> > > > > > > > Thanks!<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>
> > > > > > > _______________________________________________<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>
> > > > > > ><br>
> > > > > > ><br>
> > > > > > > --<br>
> > > > > > > Yiyang Sun<br>
> > > > > > > Department of Physics, Applied Physics, and Astronomy<br>
> > > > > > > Rensselaer Polytechnic Institute<br>
> > > > > > > Troy, NY 12180, USA<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>
> > > > > > _______________________________________________<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>
> > > > > ><br>
> > > > > ><br>
> > > > > > --<br>
> > > > > > Yiyang Sun<br>
> > > > > > Department of Physics, Applied Physics, and Astronomy<br>
> > > > > > Rensselaer Polytechnic Institute<br>
> > > > > > Troy, NY 12180, USA<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>
> > > > > _______________________________________________<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>
> > > ><br>
> > > ><br>
> > > ><br>
> > > > --<br>
> > > > Yiyang Sun<br>
> > > > Department of Physics, Applied Physics, and Astronomy<br>
> > > > Rensselaer Polytechnic Institute<br>
> > > > Troy, NY 12180, USA<br>
> > > ><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>
> > > 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>
> > ><br>
> > ><br>
> > > --<br>
> > > Yiyang Sun<br>
> > > Department of Physics, Applied Physics, and Astronomy<br>
> > > Rensselaer Polytechnic Institute<br>
> > > Troy, NY 12180, USA<br>
> > > <mpich2_AIX.tar.gz>_______________________________________________<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>
> > _______________________________________________<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>
> ><br>
> ><br>
> > --<br>
> > Yiyang Sun<br>
> > Department of Physics, Applied Physics, and Astronomy<br>
> > Rensselaer Polytechnic Institute<br>
> > Troy, NY 12180, USA<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>
> _______________________________________________<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>
><br>
><br>
> --<br>
> Yiyang Sun<br>
> Department of Physics, Applied Physics, and Astronomy<br>
> Rensselaer Polytechnic Institute<br>
> Troy, NY 12180, USA<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>
_______________________________________________<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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Yiyang Sun<br>Department of Physics, Applied Physics, and Astronomy<br>Rensselaer Polytechnic Institute<br>Troy, NY 12180, USA<br>