A Fortran programming language example
The following declaration is required on all source files that have instrumentation calls.
#include "f_hpm.h"Fortran programs call functions that include the
f_ prefix,
as you can see in the following example: call f_hpminit( taskID, "my_program" )
call f_hpmstart( 1, "Do Loop" )
do ...
call do_work()
call f_hpmstart( 5, "computing meaning of life" );
call do_more_work();
call f_hpmstop( 5 );
end do
call f_hpmstop( 1 )
call f_hpmterminate( taskID )