---
name: "MPI_T_category_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_category_get_num.openmpi"
---

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

*MPI\_T\_category\_get\_num* — Query the number of categories

## SYNTAX

### C Syntax

```
#include <mpi.h>
int MPI_T_category_get_num(int *num_cat)
```

## OUTPUT PARAMETERS

- •

  **num\_cat**: Current number of categories

## DESCRIPTION

*MPI\_T\_category\_get\_num* can be used to query the current number of categories.

## ERRORS

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

- •

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

## COPYRIGHT

2003-2025, The Open MPI Community
