Detailed Description

This interface offers ways to convert between hwloc cpusets and glibc cpusets such as those manipulated by sched_getaffinity() or pthread_attr_setaffinity_np().

Note:

Topology topology must match the current machine.

Function Documentation

static int hwloc_cpuset_from_glibc_sched_affinity (\fBhwloc_topology_t\fPtopology, \fBhwloc_cpuset_t\fPhwlocset, const cpu_set_t *schedset, size_tschedsetsize)\fC [inline]\fP, \fC [static]\fP

Convert glibc sched affinity CPU set schedset into hwloc CPU set. This function may be used before calling sched_setaffinity or any other function that takes a cpu_set_t as input parameter.

schedsetsize should be sizeof(cpu_set_t) unless schedset was dynamically allocated with CPU_ALLOC

static int hwloc_cpuset_to_glibc_sched_affinity (\fBhwloc_topology_t\fPtopology, \fBhwloc_const_cpuset_t\fPhwlocset, cpu_set_t *schedset, size_tschedsetsize)\fC [inline]\fP, \fC [static]\fP

Convert hwloc CPU set toposet into glibc sched affinity CPU set schedset. This function may be used before calling sched_setaffinity or any other function that takes a cpu_set_t as input parameter.

schedsetsize should be sizeof(cpu_set_t) unless schedset was dynamically allocated with CPU_ALLOC

Author

Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code.