TAU - Tuning and Analysis Utilities -

Tuning and Analysis Utilities

TAU

PRL

6.3. Q. What MFlops am I getting in all loops?

A. Create a flat profile with PAPI_FP_INS/OPS and time with loop instrumentation.

Figure 6.3. MFlops per loop

MFlops per loop

Here is how to generate a flat profile with FP operations

% setenv TAU_MAKEFILE /usr/local/packages/tau/i386_linux/lib/Makefile.tau-papi-mpi-pdt-pgi
% setenv TAU_OPTIONS '-optTauSelectFile=select.tau -optVerbose'
% cat select.tau
  BEGIN_INSTRUMENT_SECTION
  loops routine="#"
  END_INSTRUMENT_SECTION

% set path=(/usr/local/packages/tau/i386_linux/bin $path)
% make F90=tau_f90.sh
(Or edit Makefile and change F90=tau_f90.sh)
% setenv TAU_METRICS TIME\:PAPI_FP_INS
% mpirun -np 4 ./a.out
% paraprof --pack app.ppk
	Move the app.ppk file to your desktop. 
% paraprof app.ppk
  Choose 'Options' -> 'Show Derived Panel' -> Arg 1 = PAPI_FP_INS, Arg 2 =
	TIME, Operation = Divide -> Apply, close.