I see. I find mpich2-1.2 supports -gdb, doesn't it?<div><br></div><div>Btw, for the current hydra process manager, we can use totalview to debug program, don't you? <br><br></div><div>Clara<br><div class="gmail_quote">
On Thu, Jul 28, 2011 at 1:06 AM, Pavan Balaji <span dir="ltr"><<a href="mailto:balaji@mcs.anl.gov">balaji@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
I should have clarified -- mpd is not supported anymore. So "-gdb" is not a supported option as far as MPICH2 is concerned.<br>
<br>
You are welcome to use mpd, but we can't help you with it.<br>
<br>
-- Pavan<div class="im"><br>
<br>
On 07/27/2011 11:50 PM, clara wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Thanks. I changed --with-pm=hydra:gforker into<br>
--with-pm=mpd:hydra:gforker, and rebuilt the mpich2 and MPI program. I<br>
got "unable to find mpd.conf file" when running "mpiexec -gdb ..." .<br>
How can I do?<br>
<br>
Clara<br>
<br>
On Thu, Jul 28, 2011 at 12:24 AM, Pavan Balaji <<a href="mailto:balaji@mcs.anl.gov" target="_blank">balaji@mcs.anl.gov</a><br></div><div><div></div><div class="h5">
<mailto:<a href="mailto:balaji@mcs.anl.gov" target="_blank">balaji@mcs.anl.gov</a>>> wrote:<br>
<br>
<br>
The -gdb option was an mpd specific option which is currently not<br>
supported by Hydra. It's on our todo list to add.<br>
<br>
-- Pavan<br>
<br>
<br>
On 07/27/2011 09:19 PM, clara wrote:<br>
<br>
I used the below configure command line to configure and build<br>
32-bit<br>
mpich2-1.4, and then built an MPI program.<br>
<br>
./configure --prefix=/mnt/lux/git/pios/xc/<u></u>__mpich2-32<br>
--with-pm=hydra:gforker --disable-faster --enable-debuginfo<br>
CFLAGS=-m32<br>
CXXFLAGS=-m32 FFLAGS=-m32 FCFLAGS=-m32 --enable-nmpi-as-mpi<br>
--enable-lib-depend --enable-shared 2>&1 | tee mpich2-32cfg.txt<br>
<br>
When I executed "mpiexec -gdb -n 2 cg.S.2", I got the below message:<br>
[mpiexec@ubuntu] match_arg (./utils/args/args.c:122): unrecognized<br>
argument gdb<br>
[mpiexec@ubuntu] HYDU_parse_array (./utils/args/args.c:140):<br>
argument<br>
matching returned error<br>
[mpiexec@ubuntu] parse_args (./ui/mpich/utils.c:1358): error parsing<br>
input array<br>
[mpiexec@ubuntu] HYD_uii_mpx_get_parameters<br>
(./ui/mpich/utils.c:1409):<br>
unable to parse user arguments<br>
<br>
Usage: ./mpiexec [global opts] [exec1 local opts] : [exec2 local<br>
opts] : ...<br>
<br>
Global options (passed to all executables):<br>
......<br>
<br>
It seems that hydra does not support -gdb option. How can build an<br>
mpich2 which can support -gdb option?<br>
Thanks.<br>
<br>
-Clara<br>
<br>
<br>
<br>
______________________________<u></u>___________________<br>
mpich-discuss mailing list<br></div></div>
<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a> <mailto:<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.<u></u>gov</a>><div class="im">
<br>
<a href="https://lists.mcs.anl.gov/__mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/__<u></u>mailman/listinfo/mpich-discuss</a><br>
<<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/<u></u>mailman/listinfo/mpich-discuss</a><u></u>><br>
<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>
</div></blockquote><div><div></div><div class="h5">
<br>
-- <br>
Pavan Balaji<br>
<a href="http://www.mcs.anl.gov/~balaji" target="_blank">http://www.mcs.anl.gov/~balaji</a><br>
</div></div></blockquote></div><br></div>