Open MPI logo

Portable Hardware Locality (hwloc) Documentation: v1.0.3

  |   Home   |   Support   |   FAQ   |  

linux-libnuma.h File Reference

Macros to help interaction between hwloc and Linux libnuma. More...

#include <hwloc.h>
#include <numa.h>

Go to the source code of this file.

Functions

static inline int hwloc_cpuset_to_linux_libnuma_ulongs (hwloc_topology_t topology, hwloc_const_cpuset_t cpuset, unsigned long *mask, unsigned long *maxnode)
 Convert hwloc CPU set cpuset into the array of unsigned long mask.
static inline int hwloc_cpuset_from_linux_libnuma_ulongs (hwloc_topology_t topology, hwloc_cpuset_t cpuset, const unsigned long *mask, unsigned long maxnode)
 Convert the array of unsigned long mask into hwloc CPU set.
static inline struct
bitmask
hwloc_cpuset_to_linux_libnuma_bitmask (hwloc_topology_t topology, hwloc_const_cpuset_t cpuset)
 Convert hwloc CPU set cpuset into the returned libnuma bitmask.
static inline int hwloc_cpuset_from_linux_libnuma_bitmask (hwloc_topology_t topology, hwloc_cpuset_t cpuset, const struct bitmask *bitmask)
 Convert libnuma bitmask bitmask into hwloc CPU set cpuset.
static inline int hwloc_cpuset_to_linux_libnuma_nodemask (hwloc_topology_t topology, hwloc_const_cpuset_t cpuset, nodemask_t *nodemask)
 Convert hwloc CPU set cpuset into libnuma nodemask nodemask.
static inline int hwloc_cpuset_from_linux_libnuma_nodemask (hwloc_topology_t topology, hwloc_cpuset_t cpuset, const nodemask_t *nodemask)
 Convert libnuma nodemask nodemask into hwloc CPU set cpuset.

Detailed Description

Macros to help interaction between hwloc and Linux libnuma.

Applications that use both Linux libnuma and hwloc may want to include this file so as to ease conversion between their respective types.