[mpich-discuss] How can I debug MPI program

clara clarazhang at gmail.com
Wed Jul 27 23:50:22 CDT 2011


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> 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
>> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20110728/ecaf0d4c/attachment.htm>


More information about the mpich-discuss mailing list