OpenMPI 0.1.1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

Macros | Functions
cpuset.h File Reference

The old deprecated Cpuset API. More...

`#include "hwloc/bitmap.h"`

Go to the source code of this file.

## Macros
#define | hwloc_cpuset_foreach_begin hwloc_bitmap_foreach_begin
#define | hwloc_cpuset_foreach_end hwloc_bitmap_foreach_end

## Functions
static __hwloc_inline hwloc_bitmap_t __hwloc_attribute_deprecated | hwloc_cpuset_alloc (void)
static __hwloc_inline void __hwloc_attribute_deprecated | hwloc_cpuset_free (hwloc_bitmap_t bitmap)
static __hwloc_inline hwloc_bitmap_t __hwloc_attribute_deprecated | hwloc_cpuset_dup (hwloc_const_bitmap_t bitmap)
static __hwloc_inline void __hwloc_attribute_deprecated | hwloc_cpuset_copy (hwloc_bitmap_t dst, hwloc_const_bitmap_t src)
static __hwloc_inline int __hwloc_attribute_deprecated | hwloc_cpuset_snprintf (char *__hwloc_restrict buf, size_t buflen, hwloc_const_bitmap_t bitmap)
static __hwloc_inline int __hwloc_attribute_deprecated | hwloc_cpuset_asprintf (char **strp, hwloc_const_bitmap_t bitmap)
static __hwloc_inline int __hwloc_attribute_deprecated | hwloc_cpuset_from_string (hwloc_bitmap_t bitmap, const char *__hwloc_restrict string)
static __hwloc_inline void __hwloc_attribute_deprecated | hwloc_cpuset_zero (hwloc_bitmap_t bitmap)
static __hwloc_inline void __hwloc_attribute_deprecated | hwloc_cpuset_fill (hwloc_bitmap_t bitmap)
static __hwloc_inline void __hwloc_attribute_deprecated | hwloc_cpuset_from_ulong (hwloc_bitmap_t bitmap, unsigned long mask)
static __hwloc_inline void __hwloc_attribute_deprecated | hwloc_cpuset_from_ith_ulong (hwloc_bitmap_t bitmap, unsigned i, unsigned long mask)
static __hwloc_inline unsigned __hwloc_attribute_deprecated long | hwloc_cpuset_to_ulong (hwloc_const_bitmap_t bitmap)
static __hwloc_inline unsigned __hwloc_attribute_deprecated long | hwloc_cpuset_to_ith_ulong (hwloc_const_bitmap_t bitmap, unsigned i)
static __hwloc_inline void __hwloc_attribute_deprecated | hwloc_cpuset_cpu (hwloc_bitmap_t bitmap, unsigned index_)
static __hwloc_inline void __hwloc_attribute_deprecated | hwloc_cpuset_all_but_cpu (hwloc_bitmap_t bitmap, unsigned index_)
static __hwloc_inline void __hwloc_attribute_deprecated | hwloc_cpuset_set (hwloc_bitmap_t bitmap, unsigned index_)
static __hwloc_inline void __hwloc_attribute_deprecated | hwloc_cpuset_set_range (hwloc_bitmap_t bitmap, unsigned begin, unsigned end)
static __hwloc_inline void __hwloc_attribute_deprecated | hwloc_cpuset_set_ith_ulong (hwloc_bitmap_t bitmap, unsigned i, unsigned long mask)
static __hwloc_inline void __hwloc_attribute_deprecated | hwloc_cpuset_clr (hwloc_bitmap_t bitmap, unsigned index_)
static __hwloc_inline void __hwloc_attribute_deprecated | hwloc_cpuset_clr_range (hwloc_bitmap_t bitmap, unsigned begin, unsigned end)
static __hwloc_inline int __hwloc_attribute_deprecated | hwloc_cpuset_isset (hwloc_const_bitmap_t bitmap, unsigned index_)
static __hwloc_inline int __hwloc_attribute_deprecated | hwloc_cpuset_iszero (hwloc_const_bitmap_t bitmap)
static __hwloc_inline int __hwloc_attribute_deprecated | hwloc_cpuset_isfull (hwloc_const_bitmap_t bitmap)
static __hwloc_inline int __hwloc_attribute_deprecated | hwloc_cpuset_isequal (hwloc_const_bitmap_t bitmap1, hwloc_const_bitmap_t bitmap2)
static __hwloc_inline int __hwloc_attribute_deprecated | hwloc_cpuset_intersects (hwloc_const_bitmap_t bitmap1, hwloc_const_bitmap_t bitmap2)
static __hwloc_inline int __hwloc_attribute_deprecated | hwloc_cpuset_isincluded (hwloc_const_bitmap_t sub_bitmap, hwloc_const_bitmap_t super_bitmap)
static __hwloc_inline void __hwloc_attribute_deprecated | hwloc_cpuset_or (hwloc_bitmap_t res, hwloc_const_bitmap_t bitmap1, hwloc_const_bitmap_t bitmap2)
static __hwloc_inline void __hwloc_attribute_deprecated | hwloc_cpuset_and (hwloc_bitmap_t res, hwloc_const_bitmap_t bitmap1, hwloc_const_bitmap_t bitmap2)
static __hwloc_inline void __hwloc_attribute_deprecated | hwloc_cpuset_andnot (hwloc_bitmap_t res, hwloc_const_bitmap_t bitmap1, hwloc_const_bitmap_t bitmap2)
static __hwloc_inline void __hwloc_attribute_deprecated | hwloc_cpuset_xor (hwloc_bitmap_t res, hwloc_const_bitmap_t bitmap1, hwloc_const_bitmap_t bitmap2)
static __hwloc_inline void __hwloc_attribute_deprecated | hwloc_cpuset_not (hwloc_bitmap_t res, hwloc_const_bitmap_t bitmap)
static __hwloc_inline int __hwloc_attribute_deprecated | hwloc_cpuset_first (hwloc_const_bitmap_t bitmap)
static __hwloc_inline int __hwloc_attribute_deprecated | hwloc_cpuset_last (hwloc_const_bitmap_t bitmap)
static __hwloc_inline int __hwloc_attribute_deprecated | hwloc_cpuset_next (hwloc_const_bitmap_t bitmap, unsigned prev)
static __hwloc_inline void __hwloc_attribute_deprecated | hwloc_cpuset_singlify (hwloc_bitmap_t bitmap)
static __hwloc_inline int __hwloc_attribute_deprecated | hwloc_cpuset_compare_first (hwloc_const_bitmap_t bitmap1, hwloc_const_bitmap_t bitmap2)
static __hwloc_inline int __hwloc_attribute_deprecated | hwloc_cpuset_compare (hwloc_const_bitmap_t bitmap1, hwloc_const_bitmap_t bitmap2)
static __hwloc_inline int __hwloc_attribute_deprecated | hwloc_cpuset_weight (hwloc_const_bitmap_t bitmap)

## Detailed Description

The old deprecated Cpuset API.

This interface should not be used anymore, it will be dropped in a later release.

hwloc/bitmap.h should be used instead. Most hwloc_cpuset_foo functions are replaced with hwloc_bitmap_foo. The only exceptions are:

- hwloc_cpuset_from_string -> hwloc_bitmap_sscanf
- hwloc_cpuset_cpu -> hwloc_bitmap_only
- hwloc_cpuset_all_but_cpu -> hwloc_bitmap_allbut