<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
P {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
BODY {
LINE-HEIGHT: 1.5; FONT-FAMILY: ËÎÌå; COLOR: #000000; FONT-SIZE: 10.5pt
}
</STYLE>
<META name=GENERATOR content="MSHTML 8.00.6001.23536"></HEAD>
<BODY style="MARGIN: 10px">
<DIV>Dear all,</DIV>
<DIV> </DIV>
<DIV>I want to debug parallel fortran program with idb.</DIV>
<DIV> </DIV>
<DIV>The configure parameter of MPICH2 or MPICH3 is as follows:</DIV>
<DIV> </DIV>
<DIV>
<DIV>./configure --prefix=$HOME/program/mpich/mpich2-1.4.1p1 \</DIV>
<DIV>
--enable-f77 --enable-fc F77=ifort FC=ifort \</DIV>
<DIV>
FFLAGS="-g -traceback -checkall" FCFLAGS="-g -traceback -checkall" \</DIV>
<DIV>
--enable-static --enable-g=dbg \</DIV>
<DIV>
--enable-traceback --enable-f90modules</DIV>
<DIV> </DIV>
<DIV>or</DIV>
<DIV> </DIV>
<DIV>
<DIV>./configure --prefix=$HOME/program/mpich/mpich2-1.4.1p1 \</DIV>
<DIV>
--enable-f77 --enable-fc F77=ifort FC=ifort \</DIV>
<DIV>
FFLAGS="-g -traceback -checkall" FCFLAGS="-g -traceback -checkall" \</DIV>
<DIV>
--enable-static --enable-g=all \</DIV>
<DIV>
--enable-traceback --enable-f90modules</DIV></DIV>
<DIV> </DIV></DIV>
<DIV> </DIV>
<DIV>mpirun -machinefile $PBS_NODEFILE -np $NPROCS -gdb=idb
-parallel myprogram -npool 1</DIV>
<DIV> </DIV>
<DIV>There comes the error message:</DIV>
<DIV>=======================================================================================</DIV>
<DIV>match_arg (./utils/args/args.c:160): unrecognized argument dbg </DIV>
<DIV>HYDU_parse_array (./utils/args/args.c:175): argument matching returned
error </DIV>
<DIV>parse_args (./ui/mpich/utils.c:1609): error parsing input array </DIV>
<DIV>HYD_uii_mpx_get_parameters (./ui/mpich/utils.c:1660): unable to parse user
arguments </DIV>
<DIV>main (./ui/mpich/mpiexec.c:153): error parsing parameters </DIV>
<DIV>=======================================================================================</DIV>
<DIV> </DIV>
<DIV>How can mpirun recognition the argument "dbg"?</DIV>
<DIV> </DIV>
<DIV>Best regards!</DIV>
<DIV> </DIV>
<HR style="WIDTH: 210px; HEIGHT: 1px" align=left color=#b5c4df SIZE=1>
<DIV><SPAN>
<DIV style="FONT-FAMILY: verdana; FONT-SIZE: 10pt">
<DIV>ylniu@iccas.ac.cn</DIV></DIV></SPAN></DIV></BODY></HTML>