Detailed Description

For use in hwloc itself, a hwloc_cpuset_t represents a set of logical processors.

Note:

cpusets are indexed by OS logical processor number.

Define Documentation

#define hwloc_cpuset_foreach_begin(cpu, set)

Loop macro iterating on CPU set set. cpu is the loop variable; it should be an unsigned int. The first iteration will set cpu to the lowest index CPU in the set. Successive iterations will iterate through, in order, all remaining CPUs that in the set. To be specific: each iteration will return a value for cpu such that hwloc_cpuset_isset(set, cpu) is true.