Open MPI logo

Portable Hardware Locality (hwloc) Documentation: v1.1.2

  |   Home   |   Support   |   FAQ   |  

linux.h File Reference

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

#include <hwloc.h>
#include <stdio.h>

Go to the source code of this file.

Functions

int hwloc_linux_parse_cpumap_file (FILE *file, hwloc_cpuset_t set)
 Convert a linux kernel cpumap file file into hwloc CPU set.
int hwloc_linux_set_tid_cpubind (hwloc_topology_t topology, pid_t tid, hwloc_const_cpuset_t set)
 Bind a thread tid on cpus given in cpuset set.
int hwloc_linux_get_tid_cpubind (hwloc_topology_t topology, pid_t tid, hwloc_cpuset_t set)
 Get the current binding of thread tid.

Detailed Description

Macros to help interaction between hwloc and Linux.

Applications that use hwloc on Linux may want to include this file if using some low-level Linux features.