Prism 6.0, a component of Sun HPC ClusterTools 3.0 software, can be used in conjunction with the TNF probes and libraries included with Sun MPI 4.0 for profiling your code. See Appendix C, TNF Probes for information about the TNF probes and "Choosing a Library Path" for information about linking to the "trace" or TNF libraries. See the Prism 6.0 User's Guide for more information about the TNF viewer built into Prism.
Sun MPI 4.0 also meets the requirements of the profiling interface described in Chapter 8 of the MPI-1 Standard. You may write your own profiling library or choose from a number of available profiling libraries, such as those included with the multiprocessing environment (MPE) from Argonne National Laboratory. (See "MPE: Extensions to the Library" for more information.) The User's Guide for mpich, a Portable Implementation of MPI, includes more detailed information about using profiling libraries. For information about this and other MPI- and MPICH-related publications, see "Related Publications".
The following figure illustrates how the software fits together. In this example, the user is linking against a profiling library that collects information on MPI_Send(). No profiling information is being collected for MPI_Recv().
To compile the program, the user's link line would look like this:
# cc ..... -llibrary-name -lmpi