[mpich-discuss] How can I debug MPI program

clara clarazhang at gmail.com
Wed Jul 27 21:19:52 CDT 2011


I used the below configure command line to configure and build 32-bit
mpich2-1.4, and then built an MPI program.

./configure --prefix=/mnt/lux/git/pios/xc/mpich2-32 --with-pm=hydra:gforker
--disable-faster --enable-debuginfo CFLAGS=-m32 CXXFLAGS=-m32 FFLAGS=-m32
FCFLAGS=-m32 --enable-nmpi-as-mpi --enable-lib-depend --enable-shared 2>&1 |
tee mpich2-32cfg.txt

When I executed "mpiexec -gdb -n 2 cg.S.2", I got the below message:
[mpiexec at ubuntu] match_arg (./utils/args/args.c:122): unrecognized argument
gdb
[mpiexec at ubuntu] HYDU_parse_array (./utils/args/args.c:140): argument
matching returned error
[mpiexec at ubuntu] parse_args (./ui/mpich/utils.c:1358): error parsing input
array
[mpiexec at ubuntu] HYD_uii_mpx_get_parameters (./ui/mpich/utils.c:1409):
unable to parse user arguments

Usage: ./mpiexec [global opts] [exec1 local opts] : [exec2 local opts] : ...

Global options (passed to all executables):
......

It seems that hydra does not support -gdb option. How can build an mpich2
which can support -gdb option?
Thanks.

-Clara
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20110727/2938a422/attachment.htm>


More information about the mpich-discuss mailing list