cray_upc_team_rank

Date:

09-23-2013

NAME

cray_upc_team_rank - Gets the caller’s rank in a Cray UPC team

SYNOPSIS

#include <upc_collective_cray.h>

cray_upc_return_t cray_upc_team_rank( cray_upc_team_t team, int *rank );

IMPLEMENTATION

Cray Linux Environment (CLE)

DESCRIPTION

The cray_upc_team_rank function stores the caller’s rank in a Cray UPC team into the location indicated by *rank. The stored value will be the same as MYTHREAD if the team is CRAY_UPC_TEAM_ALL.

RETURN VALUE

The cray_upc_team_rank function returns CRAY_UPC_SUCCESS if it successfully stored the rank of the calling thread in *rank, or CRAY_UPC_ERROR if an error occurred.

SEE ALSO

cray_upc_return_t(3c), cray_upc_team_size(3c), cray_upc_team_split(3c), cray_upc_team_t(3c)