[mpich-discuss] How can I debug MPI program
Jain, Rohit
Rohit_Jain at mentor.com
Thu Jul 28 00:12:25 CDT 2011
You can use totalview to debug your MPI program. It provides better debugging experience than plain gdb.
Regards,
Rohit
-----Original Message-----
From: mpich-discuss-bounces at mcs.anl.gov [mailto:mpich-discuss-bounces at mcs.anl.gov] On Behalf Of Pavan Balaji
Sent: Wednesday, July 27, 2011 10:06 PM
To: clara
Cc: mpich-discuss at mcs.anl.gov
Subject: Re: [mpich-discuss] How can I debug MPI program
I should have clarified -- mpd is not supported anymore. So "-gdb" is
not a supported option as far as MPICH2 is concerned.
You are welcome to use mpd, but we can't help you with it.
-- Pavan
On 07/27/2011 11:50 PM, clara wrote:
> Thanks. I changed --with-pm=hydra:gforker into
> --with-pm=mpd:hydra:gforker, and rebuilt the mpich2 and MPI program. I
> got "unable to find mpd.conf file" when running "mpiexec -gdb ..." .
> How can I do?
>
> Clara
>
> On Thu, Jul 28, 2011 at 12:24 AM, Pavan Balaji <balaji at mcs.anl.gov
> <mailto:balaji at mcs.anl.gov>> wrote:
>
>
> 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 <mailto:mpich-discuss at mcs.anl.gov>
> https://lists.mcs.anl.gov/__mailman/listinfo/mpich-discuss
> <https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss>
>
>
> --
> Pavan Balaji
> http://www.mcs.anl.gov/~balaji
>
>
--
Pavan Balaji
http://www.mcs.anl.gov/~balaji
_______________________________________________
mpich-discuss mailing list
mpich-discuss at mcs.anl.gov
https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
More information about the mpich-discuss
mailing list