---
name: "MPE_GetTags"
section: "4"
platform: "linux"
package: "mpi-doc"
version: "1.2.7-9.1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/MPE_GetTags"
---

# MPE\_GetTags(4)

Returns tags that can be used in communication with a communicator

## NAME

MPE\_GetTags -  Returns tags that can be used in communication with a  communicator

## SYNOPSIS

```
int MPE_GetTags( comm_in, ntags, comm_out, first_tag )
MPI_Comm comm_in, *comm_out;
int      ntags, *first_tag;
```

## INPUT PARAMETERS

- **comm\_in**

  \- Input communicator

- **ntags**

  \- Number of tags

## OUTPUT PARAMETERS

- **comm\_out**

  \- Output communicator.  May be  *comm\_in* .

- **first\_tag**

  \- First tag available

## RETURNS

MPI\_SUCCESS on success, MPI error class on failure.

## NOTES

This routine returns the requested number of tags, with the tags being *first\_tag* ,  *first\_tag+1* , ...,  *first\_tag+ntags-1* .

These tags are guarenteed to be unique within  *comm\_out* .

## SEE ALSO

MPE\_ReturnTags\

## LOCATION

privtags.c
