---
name: "MPI_T_pvar_get_num.openmpi"
section: "3"
platform: "linux"
package: "openmpi-doc"
version: "5.0.7-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/MPI_T_pvar_get_num.openmpi"
---

# MPI\_T\_pvar\_get\_num.openmpi(3)

*MPI\_T\_pvar\_get\_num* — Query the number of performance variables

## SYNTAX

### C Syntax

```
#include <mpi.h>
int MPI_T_pvar_get_num(int *num_pvar)
```

## OUTPUT PARAMETERS

- •

  **num\_pvar**: Current number of performance variables.

## DESCRIPTION

*MPI\_T\_pvar\_get\_num* can be used to query the current number of performance variables. The number of performance variables may increase throughout the execution of the process but will never decrease.

## ERRORS

*MPI\_T\_pvar\_get\_num* will fail if:

- •

  **MPI\_T\_ERR\_NOT\_INITIALIZED**: The MPI Tools interface not initialized

## COPYRIGHT

2003-2025, The Open MPI Community
