Scroll to navigation

PMIX_CPUSET_T(5) OpenPMIx PMIX_CPUSET_T(5)

pmix_cpuset_t — Contains the binding bitmap of a process

SYNTAX

C Syntax

#include <pmix_common.h>
typedef struct {

char *source;
void *bitmap; } pmix_cpuset_t;


DESCRIPTION

The pmix_cpuset_t structure contains a character string identifying the source of the bitmap and a pointer to the corresponding implementation-specific structure describing a process’s CPU binding.

The source field is a string naming the implementation that generated the bitmap (e.g., "hwloc"). Operations that consume a pmix_cpuset_t will return an error if the source does not match the underlying source that provided the binding bitmap.

The bitmap field is an opaque pointer to the implementation-specific structure that holds the actual binding (e.g., an hwloc_cpuset_t). Its interpretation depends on the value of source.

The PMIX_CPUSET_STATIC_INIT macro is provided to statically initialize a pmix_cpuset_t structure.

A pmix_cpuset_t is loaded by PMIx_Get_cpuset(3) <#man3-pmix-get-cpuset>, which retrieves the binding of the calling process, and by PMIx_Parse_cpuset_string(3) <#man3-pmix-parse-cpuset-string>, which parses a PMIX_CPUSET string into the structure. The pmix_bind_envelope_t(5) <#man5-pmix-bind-envelope-t> value passed to PMIx_Get_cpuset controls which threads of a possibly multi-threaded process are considered.

STATIC INITIALIZER

A statically declared pmix_cpuset_t may be initialized with the PMIX_CPUSET_STATIC_INIT macro, which sets both source and bitmap to NULL:

pmix_cpuset_t cpuset = PMIX_CPUSET_STATIC_INIT;


See also:

PMIx_Get_cpuset(3) <#man3-pmix-get-cpuset>, PMIx_Parse_cpuset_string(3) <#man3-pmix-parse-cpuset-string>, pmix_bind_envelope_t(5) <#man5-pmix-bind-envelope-t>, pmix_topology_t(5) <#man5-pmix-topology-t>


Copyright

2014-2026, OpenPMIx Community

November 5, 2026