Tracing generates a log of events that took place in each node for an application. These event traces can be viewed by tools such as VAMPIR .
Configure POOMA with TRACE option.
% cd $POOMA_ROOT % conf O2K64 MPI TRACE % cd $POOMA_ROOT/lib/$POOMA_ARCH % make |
% cd $POOMA_ROOT/src/Profile/utils % makeAdd to your .cshrc file set path=($path $POOMA_ROOT/src/Profile/utils) |
Event traces could be large and so using the scratch partition is recommended for speed and size constraints. Set the environment variable TRACEDIR to specify the directory in which the trace files should be generated.
% setenv TRACEDIR /scratch/dixiebutte/sameer/sindex % cd $POOMA_ROOT/test/sindex % make sindex % mpirun -np 4 sindex --commlib mpi |
% mpirun -np 4 sindex --commlib mpi --profile sparse+field+io+utils |
tau.<nodeid>.trc
and event definition files events.<nodeid>.edf
.
To merge the traces to a single binary trace file named say sindex.trc , use
% tau_merge tau.*.trc sindex.trc |
tau.edf
and the binary trace sindex.trc as specified on the command line.
To convert this single trace to an ascii text trace in VAMPIR trace format named say sindex.pv
, use
% tau_convert -pv -compact sindex.trc tau.edf sindex.pv |
To see the trace of node 2, use
% tau_convert -dump tau.0002.trc events.2.edf |
# For VAMPIR (PARvis) Trace browser setenv PAL_ROOT /usr/local/pooma/vampir setenv PAL_LICENSEFILE /usr/local/pooma/vampir/etc/license.dat set path=($path /usr/local/pooma/vampir/bin) |
vampir
. A 24 bit display is recommended to view the function groups in distinct colors.