[mpich-discuss] How can I debug MPI program

clara clarazhang at gmail.com
Thu Jul 28 00:15:34 CDT 2011


I see. I find mpich2-1.2 supports -gdb, doesn't it?

Btw, for the current hydra process manager, we can use totalview to debug
program, don't you?

Clara
On Thu, Jul 28, 2011 at 1:06 AM, Pavan Balaji <balaji at mcs.anl.gov> wrote:

>
> 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<mpich-discuss at mcs.anl.gov>
>> >
>>
>>        https://lists.mcs.anl.gov/__**mailman/listinfo/mpich-discuss<https://lists.mcs.anl.gov/__mailman/listinfo/mpich-discuss>
>>        <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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20110728/22e6eac1/attachment-0001.htm>


More information about the mpich-discuss mailing list