PMI_Get_app_size
PMI_Get_app_size - Returns the number of ranks running the application within the callers process group
SYNOPSIS
C or C++ SYNOPSIS
#include <pmi.h>
int PMI_Get_app_size(int app, int *size);
IMPLEMENTATION
Cray Linux Environment (CLE)
DESCRIPTION
This function returns the size (number of ranks) running the application in the process group to which the local process belongs. It replaces the deprecated PMI_CRAY_Get_app_size() function.
app
The application number of the application in the process group.
size
Pointer to an integer that receives the size (number of ranks) of the application 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)