PMI_Get_rank

PMI_Get_rank - Obtains the rank of the local process

SYNOPSIS

C or C++ SYNOPSIS

#include <pmi.h>
int PMI_Get_rank(int *rank);

IMPLEMENTATION

Cray Linux Environment (CLE)

DESCRIPTION

Returns the rank of the local process in its process group. It is akin to MPI_Get_rank(). Made redundant by the call to PMI2_Init().

rank

Pointer to an integer that receives the rank.

RETURN VALUES

PMI_SUCCESS

Operation completed successfully

PMI_FAIL

Operation failed

PMI_ERR_INIT

PMI not initialized

PMI_ERR_INVALID_ARG

Invalid argument

SEE ALSO

intro_pmi(3)