HP-MPI User's Guide (11th Edition)
Profiling
Using counter instrumentation
Chapter 4 175
Using counter instrumentation
Counter instrumentation is a lightweight method for generating
cumulative runtime statistics for your MPI applications. When you
create an instrumentation profile, HP-MPI creates an output file in
ASCII format.
You can create instrumentation profiles for applications linked with the
standard HP-MPI library. For applications linked with HP-MPI version
2.1 or later, you can also create profiles for applications linked with the
thread-compliant library (-lmtmpi). Instrumentation is not supported
for applications linked with the diagnostic library (-ldmpi).
Creating an instrumentation profile
Counter instrumentation is a lightweight method for generating
cumulative runtime statistics for MPI applications. When you create an
instrumentation profile, HP-MPI creates an ASCII format file containing
statistics about the execution.
Instrumentation is not supported for applications linked with the
diagnostic library (-ldmpi).
The syntax for creating an instrumentation profile is:
mpirun -i prefix[:l][:nc][:off]
where
prefix Specifies the instrumentation output file prefix. The
rank zero process writes the application’s
measurement data to prefix.instr in ASCII. If the
prefix does not represent an absolute pathname, the
instrumentation output file is opened in the working
directory of the rank zero process when MPI_Init is
called.
l Locks ranks to CPUs and uses the CPU’s cycle counter
for less invasive timing. If used with gang scheduling,
the :l is ignored.
nc Specifies no clobber. If the instrumentation output file
exists, MPI_Init aborts.