[mpich-discuss] Clog2 conversion to Slog2 fails

chan at mcs.anl.gov chan at mcs.anl.gov
Wed Apr 21 10:17:56 CDT 2010


----- "Joao Duro" <j.a.duro at cranfield.ac.uk> wrote:


> Right now is:
> mpicc -I/lustre/scratch/c119470/mpe2/mpe2-1.1.1/include/
> matrix_matrix_log.c  -o matrix_matrix_log -lpthread
> -L/lustre/scratch/c119470/mpe2/mpe2-1.1.1/lib/ -lmpe

Since you only link with -lmpe, your link command is essentially "mpecc -log".
To enable MPI logging, do

mpecc -mpilog -o matrix_matrix_log matrix_matrix_log.c

> 2) http://pastebin.com/8VNGgTTZ

Your C program hardwired MPE eventID in MPE_Describe_event().
It is the reason of the corrupted clog2 file.  In the README file
in mpe2, under section VI) CUSTOMIZING LOGFILES, you should
see a description of correct way of using MPE logging functions.
BTW, you also need to understand when MPE_Init_log()/MPE_Finish_log()
should be used in your program (that depends if -mpilog or -log
is used with mpecc).

Basically, you need to use MPE_Log_get_state_eventIDs() to get valid
MPE eventIDs for MPE_Describe_event() and MPE_Log_event()...  For a 
complete C example, you can look at 
<mpe2_install_dir>/share/examples_logging/cpilog.c
for details.

A.Chan


More information about the mpich-discuss mailing list