Open MPI logo

Portable Hardware Locality (hwloc) Documentation: v1.0.1

  |   Home   |   Support   |   FAQ   |  

glibc-sched.h File Reference

Macros to help interaction between hwloc and glibc scheduling routines. More...

#include <hwloc.h>
#include <hwloc/helper.h>
#include <assert.h>

Go to the source code of this file.

Functions

static inline int hwloc_cpuset_to_glibc_sched_affinity (hwloc_topology_t topology , hwloc_const_cpuset_t hwlocset, cpu_set_t *schedset, size_t schedsetsize)
 Convert hwloc CPU set toposet into glibc sched affinity CPU set schedset.
static inline int hwloc_cpuset_from_glibc_sched_affinity (hwloc_topology_t topology , hwloc_cpuset_t hwlocset, const cpu_set_t *schedset, size_t schedsetsize)
 Convert glibc sched affinity CPU set schedset into hwloc CPU set.

Detailed Description

Macros to help interaction between hwloc and glibc scheduling routines.

Applications that use both hwloc and glibc scheduling routines such as sched_getaffinity may want to include this file so as to ease conversion between their respective types.