Difference between revisions of "FAQInstrumentingFortran"
(→Some things to check before you begin) |
|||
Line 3: | Line 3: | ||
== Some things to check before you begin == | == Some things to check before you begin == | ||
− | * Are you using '''#define''' in | + | * 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: |
<pre> | <pre> | ||
tau_f90.sh -tau_options=-optPreProcess foo.f | tau_f90.sh -tau_options=-optPreProcess foo.f | ||
+ | </pre> | ||
+ | |||
+ | 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: | ||
+ | <pre> | ||
+ | setenv TAU_OPTIONS ‘-optPdtF95Opts=“-R free” -optVerbose ’ | ||
+ | tau_f90.sh foo.f | ||
</pre> | </pre> |
Revision as of 18:46, 12 August 2008
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