287. Requirements

Up: Contents Next: Discussion Previous: Profiling Interface

To meet the MPI profiling interface, an implementation of the MPI functions must

    1. provide a mechanism through which all of the MPI defined functions except those allowed as macros (See Section Functions and Macros ). This requires, in C and Fortran, an alternate entry point name, with the prefix PMPI_ for each MPI function. The profiling interface in C++ is described in Section Profiling . For routines implemented as macros, it is still required that the PMPI_ version be supplied and work as expected, but it is not possible to replace at link time the MPI_ version with a user-defined version.

    2. ensure that those MPI functions that are not replaced may still be linked into an executable image without causing name clashes.

    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.

    4. where the implementation of different language bindings is done through a layered approach (e.g. the Fortran binding is a set of ``wrapper'' functions that call the C implementation), ensure that these wrapper functions are separable from the rest of the library.

    This separability is necessary to allow a separate profiling library to be correctly implemented, since (at least with Unix linker semantics) the profiling library must contain these wrapper functions if it is to perform as expected. This requirement allows the person who builds the profiling library to extract these functions from the original MPI library and add them into the profiling library without bringing along any other unnecessary code.

    5. provide a no-op routine MPI_PCONTROL in the MPI library.

Up: Contents Next: Discussion Previous: Profiling Interface

Return to MPI-2.2 Standard Index
Return to MPI Forum Home Page

(Unofficial) MPI-2.2 of September 4, 2009
HTML Generated on September 10, 2009