18.3.3. pmix_rank_t
pmix_rank_t — Type for process rank values
18.3.3.1. SYNTAX
18.3.3.1.1. C Syntax
#include <pmix_common.h>
typedef uint32_t pmix_rank_t;
18.3.3.2. DESCRIPTION
The pmix_rank_t type is a uint32_t used to hold rank values. A rank is the zero-based numerical position of a process within a defined scope. Valid rank values start at zero.
The following reserved constants may be used to set a variable of type pmix_rank_t:
PMIX_RANK_UNDEF(UINT32_MAX) — Requests job-level data where the information itself is not associated with any specific rank, or is used when passing a pmix_proc_t(5) identifier to an operation that only references thenspacefield of that structure.PMIX_RANK_WILDCARD(UINT32_MAX-1) — Indicates that the user wants the data for the given key from every rank that posted that key.PMIX_RANK_LOCAL_NODE(UINT32_MAX-2) — A special rank value used to define groups of ranks; identifies all ranks on the local node.PMIX_RANK_INVALID(UINT32_MAX-3) — An invalid rank value.PMIX_RANK_LOCAL_PEERS(UINT32_MAX-4) — A special rank value used to define groups of ranks; identifies all peers (i.e., all processes within the same namespace) on the local node.
In addition, PMIX_RANK_VALID (UINT32_MAX-50) defines the upper boundary
for valid rank values, and the PMIX_RANK_IS_VALID(r) macro tests whether a
given rank r is valid (i.e., less than PMIX_RANK_VALID).
See also