---
name: "TAU_GLOBAL_PHASE"
section: "3"
platform: "linux"
package: "tau"
version: "2.17.3.1.dfsg-4.2"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/TAU_GLOBAL_PHASE"
---

# TAU\_GLOBAL\_PHASE(3)

Declares a global phase

## NAME

TAU\_GLOBAL\_PHASE - Declares a global phase

## SYNOPSIS

**C/C++:**

**TAU\_GLOBAL\_PHASE(Phase** *phase***, char\* or string&** *function\_name***, char\* or string&** *type***, TauGroup\_t** *group***);**

## DESCRIPTION

Declares a global phase to be used in multiple compilation units.

## EXAMPLE

**C/C++ :**

```
/* f1.c */
TAU_GLOBAL_PHASE(globalPhase, "global phase", "", TAU_USER);
/* f2.c */
int bar(void) {
  TAU_GLOBAL_PHASE_START(globalPhase);
  /* ... */
  TAU_GLOBAL_PHASE_STOP(globalPhase);
}
```

## SEE ALSO

[TAU\_GLOBAL\_PHASE\_EXTERNAL(3)](/TAU_GLOBAL_PHASE_EXTERNAL/3.md), [TAU\_GLOBAL\_PHASE\_START(3)](/TAU_GLOBAL_PHASE_START/3.md), [TAU\_GLOBAL\_PHASE\_STOP(3)](/TAU_GLOBAL_PHASE_STOP/3.md)
