Poster of Linux kernelThe best gift for a Linux geek
Binding Helpers

Binding Helpers

Section: Hardware Locality (hwloc) (3) Updated: 20 Jul 2010
Local index Up
 

NAME

Binding Helpers -  

Functions


static __hwloc_inline void hwloc_distribute (hwloc_topology_t topology, hwloc_obj_t root, hwloc_cpuset_t *cpuset, unsigned n)
Distribute n items over the topology under root.  

Function Documentation

 

static __hwloc_inline void hwloc_distribute (hwloc_topology_t topology, hwloc_obj_t root, hwloc_cpuset_t * cpuset, unsigned n) [static]

Distribute n items over the topology under root. Array cpuset will be filled with n cpusets distributed linearly over the topology under root .

This is typically useful when an application wants to distribute n threads over a machine, giving each of them as much private cache as possible and keeping them locally in number order.

The caller may typically want to also call hwloc_cpuset_singlify() before binding a thread so that it does not move at all.  

Author

Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code.


 

Index

NAME
Functions
Function Documentation
static __hwloc_inline void hwloc_distribute (hwloc_topology_t topology, hwloc_obj_t root, hwloc_cpuset_t * cpuset, unsigned n) [static]
Author

This document was created by man2html, using the manual pages.
Time: 21:48:02 GMT, April 16, 2011