table of contents
| PMIX_CPUSET_CONSTRUCT(3) | OpenPMIx | PMIX_CPUSET_CONSTRUCT(3) |
PMIx_Cpuset_construct — Initialize a caller-provided pmix_cpuset_t(5) <#man5-pmix-cpuset-t> structure.
SYNOPSIS¶
#include <pmix.h> void PMIx_Cpuset_construct(pmix_cpuset_t *cpuset);
Python Syntax¶
No Python equivalent
INPUT PARAMETERS¶
- •
- cpuset: Pointer to the pmix_cpuset_t(5) <#man5-pmix-cpuset-t> structure to be initialized. The storage for the structure itself must already exist — it is supplied by the caller (typically declared on the stack or embedded within another object).
DESCRIPTION¶
Initialize a pmix_cpuset_t <#man5-pmix-cpuset-t> that the caller has already allocated. The function zeroes the entire structure, clearing the source string pointer and the bitmap pointer. No heap memory is allocated and no bitmap is attached.
RETURN VALUE¶
PMIx_Cpuset_construct returns no value (void).
NOTES¶
Because PMIx_Cpuset_construct operates on caller-provided storage, it must be paired with PMIx_Cpuset_destruct(3) <#man3-pmix-cpuset-destruct> to release any bitmap the structure subsequently acquires. Do not pass a constructed (as opposed to created) structure to PMIx_Cpuset_free(3) <#man3-pmix-cpuset-free>, as that would attempt to free storage the library did not allocate.
The convenience macro PMIX_CPUSET_CONSTRUCT is provided as a direct wrapper around this function.
EXAMPLES¶
Construct a structure:
pmix_cpuset_t cpuset; PMIx_Cpuset_construct(&cpuset);
See also:
Copyright¶
2014-2026, OpenPMIx Community
| November 5, 2026 |