[mpich-discuss] How can I debug MPI program

Pavan Balaji balaji at mcs.anl.gov
Wed Jul 27 23:24:22 CDT 2011


The -gdb option was an mpd specific option which is currently not 
supported by Hydra. It's on our todo list to add.

  -- Pavan

On 07/27/2011 09:19 PM, clara wrote:
> 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
>
>
>
> _______________________________________________
> mpich-discuss mailing list
> mpich-discuss at mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss

-- 
Pavan Balaji
http://www.mcs.anl.gov/~balaji


More information about the mpich-discuss mailing list