table of contents
| PMIX_RANK_VALID(3) | OpenPMIx | PMIX_RANK_VALID(3) |
PMIx_Rank_valid — Test whether a pmix_rank_t(5) <#man5-pmix-rank-t> is a valid process rank
SYNOPSIS¶
#include <pmix.h> bool PMIx_Rank_valid(pmix_rank_t a);
Python Syntax¶
No Python equivalent
INPUT PARAMETERS¶
- •
- a: The pmix_rank_t(5) <#man5-pmix-rank-t> value to be tested.
DESCRIPTION¶
Test whether a rank is a valid process rank. The upper end of the pmix_rank_t <#man5-pmix-rank-t> value space is reserved for special sentinel values such as PMIX_RANK_WILDCARD, PMIX_RANK_UNDEF, and PMIX_RANK_INVALID. This routine returns true only for values that fall below PMIX_RANK_VALID — that is, ranks that denote an actual process position rather than one of the reserved markers.
RETURN VALUE¶
Returns true if a is strictly less than PMIX_RANK_VALID (a valid process rank), and false otherwise.
NOTES¶
PMIx_Rank_valid is an OpenPMIx convenience routine and is the backing implementation of the PMIX_RANK_IS_VALID macro.
See also:
Copyright¶
2014-2026, OpenPMIx Community
| November 21, 2026 |