PGPROF User's Guide - The Portland Group
PGPROF User's Guide - The Portland Group
PGPROF User's Guide - The Portland Group
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Compiler Options for Profiling<br />
–Mprof=func<br />
Perform routine-level instrumentation-based profiling.<br />
–Mprof=lines<br />
Perform instrumentation-based line-level profiling.<br />
–Mprof=mpich<br />
Use the default MPICH v3 libraries on Linux and OS X for profiling. Implies –<br />
Mmpi=mpich.<br />
–Mprof=mpich1<br />
This option has been deprecated. It continues to direct the compiler to perform MPI profiling<br />
for MPICH1, but only if you set the environment variable MPIDIR to the root of an MPICH1<br />
installation. Implies –Mmpi=mpich1.<br />
–Mprof=mpich2<br />
This option has been deprecated. It continues to direct the compiler to perform MPI profiling<br />
for MPICH2, but only if you set the environment variable MPIDIR to the root of an MPICH2<br />
installation. Implies –Mmpi=mpich2.<br />
–Mprof=msmpi<br />
Perform profiling for Microsoft MSMPI on Windows systems. Implies option –<br />
Mmpi=msmpi.<br />
–Mprof=mvapich1<br />
This option has been deprecated. It continues to direct the compiler to perform MPI profiling<br />
for MVAPICH1, but only if you set the environment variable MPIDIR to the root of an<br />
MVAPICH1 installation. Implies –Mmpi=mvapich1.<br />
–Mprof=sgimpi<br />
Perform profiling for SGI MPI. Implies option –Mmpi=sgimpi.<br />
This option is required even if you compile and link using the SGI MPI mpicc or mpif90 compiler<br />
wrappers.<br />
–Mprof=time<br />
[Linux] Generate a profile using time–based assembly-level statistical sampling. This is<br />
equivalent to using the –pg option, except the profile is saved in a file named pgprof.out<br />
rather than in gmon.out.<br />
–pg<br />
[Linux] Enable gprof-style (sample-based) profiling. Running an executable compiled with<br />
this option produces a gmon.out profile file which contains routine, line, and assembly-level<br />
profiling data.<br />
PGI Profiler User <strong>Guide</strong> 30