Open MPI logo

Portable Hardware Locality (hwloc) Documentation: v1.2.1

  |   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_nodeset_to_linux_libnuma_ulongs (hwloc_topology_t topology, hwloc_const_nodeset_t nodeset, unsigned long *mask, unsigned long *maxnode)
 Convert hwloc NUMA node set nodeset 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 int hwloc_nodeset_from_linux_libnuma_ulongs (hwloc_topology_t topology, hwloc_nodeset_t nodeset, const unsigned long *mask, unsigned long maxnode)
 Convert the array of unsigned long mask into hwloc NUMA node 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 struct
bitmask
hwloc_nodeset_to_linux_libnuma_bitmask (hwloc_topology_t topology, hwloc_const_nodeset_t nodeset)
 Convert hwloc NUMA node set nodeset 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_nodeset_from_linux_libnuma_bitmask (hwloc_topology_t topology, hwloc_nodeset_t nodeset, const struct bitmask *bitmask)
 Convert libnuma bitmask bitmask into hwloc NUMA node set nodeset.
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_nodeset_to_linux_libnuma_nodemask (hwloc_topology_t topology, hwloc_const_nodeset_t nodeset, nodemask_t *nodemask)
 Convert hwloc NUMA node set nodeset 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.
static inline int hwloc_nodeset_from_linux_libnuma_nodemask (hwloc_topology_t topology, hwloc_nodeset_t nodeset, const nodemask_t *nodemask)
 Convert libnuma nodemask nodemask into hwloc NUMA node set nodeset.

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.