PMI_Get_num_apps
PMI_Get_num_apps - Returns the number of applications running in the callers process group
SYNOPSIS
C or C++ SYNOPSIS
#include <pmi.h>
int PMI_Get_num_apps(int *numapps);
IMPLEMENTATION
Cray Linux Environment (CLE)
DESCRIPTION
This function returns the number of applications in the process group to which the local process belongs. For example, in an SPMD job, this number will always be 1. This function replaces the deprecated PMI_CRAY_Get_num_apps() function.
numapps
Pointer to an integer that receives the number of applications within the process group.
RETURN VALUES
PMI_SUCCESS
Operation completed successfully
PMI_FAIL
Operation failed
PMI_ERR_INVALID_ARG
Invalid argument
SEE ALSO
intro_pmi(3)