PMI_Get_rank_in_app
PMI_Get_rank_in_app - Returns the rank of the local process in its application within the process group
SYNOPSIS
C or C++ SYNOPSIS
#include <pmi.h>
int PMI_Get_rank_in_app(int *rank);
IMPLEMENTATION
Cray Linux Environment (CLE)
DESCRIPTION
Returns the rank of the local process in its application within the process group. This function replaces the deprecated PMI_CRAY_Get_rank_in_app() function. For an SPMD process group, the rank value is identical to that obtained with the deprecated PMI_Get_rank() function.
rank
Pointer to an integer that receives the rank in the process group.
RETURN VALUES
PMI_SUCCESS
Operation completed successfully
PMI_FAIL
Operation failed
PMI_ERR_INVALID_ARG
Invalid argument
PMI_ERR_INIT
PMI not initialized
SEE ALSO
intro_pmi(3)