Dear all,
 
I want to debug parallel fortran program with idb.
 
The configure parameter of MPICH2 or MPICH3 is as follows:
 
./configure --prefix=$HOME/program/mpich/mpich2-1.4.1p1 \
            --enable-f77 --enable-fc F77=ifort FC=ifort \
            FFLAGS="-g -traceback -checkall" FCFLAGS="-g -traceback -checkall" \
            --enable-static --enable-g=dbg \
            --enable-traceback --enable-f90modules
 
or
 
./configure --prefix=$HOME/program/mpich/mpich2-1.4.1p1 \
            --enable-f77 --enable-fc F77=ifort FC=ifort \
            FFLAGS="-g -traceback -checkall" FCFLAGS="-g -traceback -checkall" \
            --enable-static --enable-g=all \
            --enable-traceback --enable-f90modules
 
 
mpirun -machinefile $PBS_NODEFILE -np $NPROCS -gdb=idb -parallel myprogram -npool 1
 
There comes the error message:
=======================================================================================
match_arg (./utils/args/args.c:160): unrecognized argument dbg
HYDU_parse_array (./utils/args/args.c:175): argument matching returned error
parse_args (./ui/mpich/utils.c:1609): error parsing input array
HYD_uii_mpx_get_parameters (./ui/mpich/utils.c:1660): unable to parse user arguments
main (./ui/mpich/mpiexec.c:153): error parsing parameters
=======================================================================================
 
How can mpirun recognition the argument "dbg"?
 
Best regards!
 

ylniu@iccas.ac.cn