[MPICH2-dev] logging/debug options?

Rajeev Thakur thakur at mcs.anl.gov
Wed Oct 19 15:35:01 CDT 2005


To turn on the MPIDI_DBG_PRINTF debugging macro, you need to compile with
the flag MPICH_DBG_OUTPUT (do "setenv CFLAGS -DMPICH_DBG_OUTPUT" before
running configure) and at runtime you need to set the environment variable
MPICH_DBG_OUTPUT to either "stdout", "file", or "memlog".

Rajeev 

> -----Original Message-----
> From: owner-mpich2-dev at mcs.anl.gov 
> [mailto:owner-mpich2-dev at mcs.anl.gov] On Behalf Of Ashley Pittman
> Sent: Wednesday, October 19, 2005 10:32 AM
> To: Mpich2 Dev
> Subject: [MPICH2-dev] logging/debug options?
> 
> 
> Is there any documentation that covers what the following 
> macros do and
> more specifically how to enable them, from looking at configure I've
> tried --enable-timing=log and --enable-logging=rlog which seems to
> define MPIDI_FUNC_EXIT but none of the rest.  We've tried to use them
> correctly in our code but it would be nice to be able to 
> enable them if
> possible and check they are correct.
> 
> MPIDI_STATE_DECL
> MPIDI_FUNC_ENTER
> MPIDI_FUNC_EXIT
> MPIDI_DBG_PRINTF
> 
> I've added entries to defined-states.txt where needed (purely because
> the configure complains) although the code has never failed because
> these are missing.
> 
> A brief over-view of how they work and how to get information out of
> them at run-time would be fantastic.
> 
> Ashley,
> 
> 




More information about the mpich2-dev mailing list