[mpich-discuss] [mpich2-discuss]How to output debug info?

Darius Buntinas buntinas at mcs.anl.gov
Fri Sep 2 09:41:51 CDT 2011


Try setting environment variables and see if that works:

    export MPICH_DBG_FILENAME="log/dbg-%w-%d.log"
    export MPICH_DBG_CLASS=ALL     
    export MPICH_DBG_LEVEL=VERBOSE

Make sure you create the 'log' directory (i.e., mkdir log) first.

-d

On Sep 2, 2011, at 8:34 AM, clara wrote:

> For example, how can we let MPIU_DBG_MSG_FMT(....) messages output? Thanks.
> 
> On Thu, Sep 1, 2011 at 11:27 PM, clara <clarazhang at gmail.com> wrote:
> I built mpich2 with the below command line:
> ./configure --prefix=/usr/local/mpich2-32 --with-pm=hydra:gforker --disable-faster --enable-debuginfo --enable-g=dbg,log CFLAGS=-m32 CXXFLAGS=-m32 FFLAGS=-m32 FCFLAGS=-m32 2>&1 | tee mpich2-32cfg.txt
> 
> I follow the http://wiki.mcs.anl.gov/mpich2/index.php/Debug_Event_Logging and try to use below command line to run an MPI program but fail
> /usr/local/mpich2-32/bin/mpiexec -mpich-dbg file -mpich-dbg-class=all -n 4 sp.S.4
> 
> Can anyone tell me how to output debug info when running MPI programs? Thanks.
> 
> - Clara
> 
> _______________________________________________
> 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