table of contents
| PMIX_PROC_LOAD(3) | OpenPMIx | PMIX_PROC_LOAD(3) |
PMIx_Proc_load — Initialize a pmix_proc_t(5) <#man5-pmix-proc-t> with a namespace and rank.
SYNOPSIS¶
#include <pmix.h> void PMIx_Proc_load(pmix_proc_t *p,
const char *nspace, pmix_rank_t rank);
Python Syntax¶
No Python equivalent
INPUT PARAMETERS¶
- p: Pointer to the pmix_proc_t(5) <#man5-pmix-proc-t> structure to be loaded. The storage for the structure itself must already exist (caller supplied).
- nspace: Namespace string to copy into the structure’s nspace field (see pmix_nspace_t(5) <#man5-pmix-nspace-t>). May be NULL, in which case the nspace field is left cleared.
- rank: Process rank to store in the structure’s rank field (see pmix_rank_t(5) <#man5-pmix-rank-t>).
DESCRIPTION¶
Initialize a pmix_proc_t <#man5-pmix-proc-t> and populate it with a process identifier. The function first constructs the structure — exactly as PMIx_Proc_construct(3) <#man3-pmix-proc-construct> would, zeroing the nspace field — then copies the supplied nspace string into the nspace field and stores rank in the rank field.
The namespace string is copied with truncation: at most PMIX_MAX_NSLEN characters are stored, and the result is always null-terminated. If nspace is NULL, only the rank field is set (the nspace field remains cleared).
RETURN VALUE¶
PMIx_Proc_load returns no value (void).
NOTES¶
PMIx_Proc_load is an OpenPMIx convenience routine. The corresponding PMIX_PROC_LOAD macro is implemented as a direct call to this function.
Because PMIx_Proc_load re-constructs the structure before loading it, any previous contents are discarded. As a pmix_proc_t <#man5-pmix-proc-t> owns no heap-allocated payload, this is safe to call on a previously loaded structure without leaking memory.
EXAMPLES¶
Load a proc structure with a namespace and rank:
pmix_proc_t proc; PMIx_Proc_load(&proc, "myapp.job", 3);
See also:
Copyright¶
2014-2026, OpenPMIx Community
| November 5, 2026 |