HP-MPI User's Guide (11th Edition)
Profiling
Using the profiling interface
Chapter 4180
int to, int tag, MPI_Comm comm)
{
printf("Calling C MPI_Send to %d\n", to);
return PMPI_Send(buf, count, type, to, tag, comm);
}
#pragma weak (mpi_send mpi_send)
void mpi_send(void *buf, int *count, int *type, int *to,
int *tag, int *comm, int *ierr)
{
printf("Calling Fortran MPI_Send to %d\n", *to);
pmpi_send(buf, count, type, to, tag, comm, ierr);
}
C++ profiling interface
The HP-MPI C++ bindings are wrappers to the C calls. No profiling
library exists for the C++ bindings. To profile the C++ interface, write the
equivalent C wrapper version of the MPI library routines you want to
profile. See the section above for details on profiling the C MPI libraries.