---
name: "TAU_ENABLE_GROUP_NAME"
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_ENABLE_GROUP_NAME"
---

# TAU\_ENABLE\_GROUP\_NAME(3)

Enables a group based on name

## NAME

TAU\_ENABLE\_GROUP\_NAME - Enables a group based on name

## SYNOPSIS

**C/C++:**

**TAU\_ENABLE\_GROUP\_NAME(char \****groupname***);**

**Fortran:**

**TAU\_ENABLE\_GROUP\_NAME(character** *groupname***(size));**

## DESCRIPTION

TAU\_ENABLE\_GROUP\_NAME macro can turn on the instrumentation associated with routines based on a dynamic group assigned to them. It is important to note that this and the TAU\_DISABLE\_GROUP\_NAME macros apply to groups created dynamically using TAU\_GET\_PROFILE\_GROUP.

## EXAMPLE

**C/C++ :**

```
/* tau_instrumentor was invoked with -g DTM for a set of files */
TAU_DISABLE_GROUP_NAME("DTM");
dtm_routines();
/* disable and then re-enable the group with the name DTM */
TAU_ENABLE_GROUP_NAME("DTM");
```

**Fortran :**

```
! tau_instrumentor was invoked with -g DTM for this file
    call TAU_PROFILE_TIMER(profiler, "ITERATE>DTM")
    call TAU_DISABLE_GROUP_NAME("DTM")
! Disable, then re-enable DTM group
    call TAU_ENABLE_GROUP_NAME("DTM")
```

## SEE ALSO

[TAU\_GET\_PROFILE\_GROUP(3)](/TAU_GET_PROFILE_GROUP/3.md), [TAU\_DISABLE\_GROUP\_NAME(3)](/TAU_DISABLE_GROUP_NAME/3.md), [TAU\_ENABLE\_ALL\_GROUPS(3)](/TAU_ENABLE_ALL_GROUPS/3.md), [TAU\_DISABLE\_ALL\_GROUPS(3)](/TAU_DISABLE_ALL_GROUPS/3.md)
