FAQInstrumentingFortran

From Tau Wiki
Revision as of 18:46, 12 August 2008 by Scottb (talk | contribs)
Jump to: navigation, search

Tips for instrumenting Fortran code with TAU

Some things to check before you begin

  • Are you using #define, #ifdef, #endif macros any other preprocessing macros in Fortran source code? If so you will need to use to option -optPreProcess. This option is given to tau_compiler.sh like this:
tau_f90.sh -tau_options=-optPreProcess foo.f

If your Fortran code uses free format in .f files (fixed is default for .f) we need to pass the "-R free" option to the TAU parser. TAU options can be specified either on the command line or as the TAU_OPTIONS environment variable:

setenv TAU_OPTIONS ‘-optPdtF95Opts=“-R free” -optVerbose ’
tau_f90.sh foo.f