Skip to content

Commit

Permalink
Unify the TAU configuration file: add a Fortran node
Browse files Browse the repository at this point in the history
  • Loading branch information
zbeekman committed Dec 15, 2024
1 parent 51c594f commit 8599e95
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions config_files/tau_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,26 @@ function_begin_insert:
function_end_insert:
- "TAU_PROFILE_STOP(tautimer);"

Fortran:
# Config variables:
# ${full_timer_name}: "procedure_name [file_path {start}-{end}]"
instrumentation: tauFortran
program_insert:
- " integer, save :: tauProfileTimer(2) = [0, 0]"
- " call TAU_PROFILE_INIT()"
- " call TAU_PROFILE_TIMER(tauProfileTimer, \"${full_timer_name}&"
- " &\")"
- " call TAU_PROFILE_START(tauProfileTimer)"
- "#ifndef TAU_MPI"
- " call TAU_PROFILE_SET_NODE(0)"
- "#endif"


procedure_begin_insert:
- " integer, save :: tauProfileTimer(2) = [0, 0]"
- " call TAU_PROFILE_TIMER(tauProfileTimer, \"${full_timer_name}&"
- " &\")"
- " call TAU_PROFILE_START(tauProfileTimer)"

procedure_end_insert:
- " call TAU_PROFILE_STOP(tauProfileTimer)"

0 comments on commit 8599e95

Please sign in to comment.