C++ profiling example

Jeff Squyres (jsquyres@lsc.nd.edu)
Mon, 22 Jul 1996 19:22:37 -0500 (EST)

Since there were several concerns raised about profiling in the July
meeting, I have written a short example implementation of the profiling
using the proposed C++ bindings.

For the user, it works just like the C profiling: the user only needs to
*relink* their code with the additional profiling library -- the user does
not need to recompile. That is, normally the user would do something
like:

g++ mycode.o -L/usr/local/mpi -lmpi++ -o mycode

To profile, they can do:

g++ mycode.o -L/usr/local/mpi -lpmpi++ -lmpi++ -o mycode

A tarfile containing the source code of the example implementation is
available from:

http://www.cse.nd.edu/~lsc/mpi2/

The example only shows the functions MPI_COMM_SIZE and MPI_BUFFER_ATTACH,
and the constants MPI_COMM_WORLD and MPI_SUCCESS.

There is a simple configure script and makefile that should be suitable
for most flavors of Unix. There is also a README file which explains how
it works in detail. There should also be ample comments in the code.

Note: to override the default C++ compiler that configure chooses, set the
environment variable CXX before running ./configure.

{+} Jeff Squyres
{+} squyres@cse.nd.edu
{+} Perpetual Obsessive Notre Dame Student Craving Utter Madness.
{+} "I came to ND for 4 years and ended up staying for a decade."