Open MPI logo

Portable Hardware Locality (hwloc) Documentation: v0.9.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>
#include <assert.h>

Go to the source code of this file.

Functions

static inline void hwloc_cpuset_to_linux_libnuma_ulongs (hwloc_topology_t topology, hwloc_cpuset_t cpuset, unsigned long *mask, unsigned long *maxnode)
 Convert hwloc CPU set cpuset into the array of unsigned long mask.
static inline hwloc_cpuset_t hwloc_cpuset_from_linux_libnuma_ulongs (hwloc_topology_t topology, 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_cpuset_t cpuset)
 Convert hwloc CPU set cpuset into the returned libnuma bitmask.
static inline hwloc_cpuset_t hwloc_cpuset_from_linux_libnuma_bitmask (hwloc_topology_t topology, const struct bitmask *bitmask)
 Convert libnuma bitmask bitmask into hwloc CPU set cpuset.
static inline void hwloc_cpuset_to_linux_libnuma_nodemask (hwloc_topology_t topology, hwloc_cpuset_t cpuset, nodemask_t *nodemask)
 Convert hwloc CPU set cpuset into libnuma nodemask nodemask.
static inline hwloc_cpuset_t hwloc_cpuset_from_linux_libnuma_nodemask (hwloc_topology_t topology, 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.