In the MPI standard, the portion discussing the PMPI profiling
3. document the implementation of different language
bindings of the MPI interface if
they are layered on top
of each other, so that the profiler developer knows
whether she must implement the profile interface for
each binding, or can economise by implementing it
only for the lowest level routines.
Do we have such documentation anywhere? I don't see this in the OMPI
I played with this some. I wrote a Fortran program that called
MPI_Send. I wrote a Fortran wrapper that intercepted MPI_Send and
called PMPI_Send. I wrote a C wrapper that did the same thing. It
appears that both wrappers got called. So, it looks like we should
advise users to provide *only* C wrappers (unless they *also* want to
intercept at the Fortran level).