SysTutorials Posts

  • |

    hwloc_cpuset_to_linux_libnuma_ulongs (3) Linux Manual Page

    NAME hwlocality_linux_libnuma_ulongs – Interoperability with Linux libnuma unsigned long masks Functions static int hwloc_cpuset_to_linux_libnuma_ulongs (hwloc_topology_t topology, hwloc_const_cpuset_t cpuset, unsigned long *mask, unsigned long *maxnode) static int hwloc_nodeset_to_linux_libnuma_ulongs (hwloc_topology_t topology, hwloc_const_nodeset_t nodeset, unsigned long *mask, unsigned long *maxnode) static int hwloc_cpuset_from_linux_libnuma_ulongs (hwloc_topology_t topology, hwloc_cpuset_t cpuset, const unsigned long *mask, unsigned long maxnode) static int hwloc_nodeset_from_linux_libnuma_ulongs (hwloc_topology_t…

  • |

    hwloc_cpuset_to_linux_libnuma_bitmask (3) Linux Manual Page

    NAME hwlocality_linux_libnuma_bitmask – Interoperability with Linux libnuma bitmask Functions static struct bitmask * hwloc_cpuset_to_linux_libnuma_bitmask (hwloc_topology_t topology, hwloc_const_cpuset_t cpuset) static struct bitmask * hwloc_nodeset_to_linux_libnuma_bitmask (hwloc_topology_t topology, hwloc_const_nodeset_t nodeset) static int hwloc_cpuset_from_linux_libnuma_bitmask (hwloc_topology_t topology, hwloc_cpuset_t cpuset, const struct bitmask *bitmask) static int hwloc_nodeset_from_linux_libnuma_bitmask (hwloc_topology_t topology, hwloc_nodeset_t nodeset, const struct bitmask *bitmask) Detailed Description This interface helps converting…

  • |

    hwloc_cpuset_to_glibc_sched_affinity (3) Linux Manual Page

    NAME hwlocality_glibc_sched – Interoperability with glibc sched affinity Functions static int hwloc_cpuset_to_glibc_sched_affinity (hwloc_topology_t topology, hwloc_const_cpuset_t hwlocset, cpu_set_t *schedset, size_t schedsetsize) static int hwloc_cpuset_from_glibc_sched_affinity (hwloc_topology_t topology, hwloc_cpuset_t hwlocset, const cpu_set_t *schedset, size_t schedsetsize) Detailed Description This interface offers ways to convert between hwloc cpusets and glibc cpusets such as those manipulated by sched_getaffinity() or pthread_attr_setaffinity_np(). Note:…

  • |

    hwloc_cpuset_t (3) Linux Manual Page

    NAME hwlocality_object_sets – Object Sets (hwloc_cpuset_t and hwloc_nodeset_t) Typedefs typedef hwloc_bitmap_t hwloc_cpuset_t typedef hwloc_const_bitmap_t hwloc_const_cpuset_t typedef hwloc_bitmap_t hwloc_nodeset_t typedef hwloc_const_bitmap_t hwloc_const_nodeset_t Detailed Description Hwloc uses bitmaps to represent two distinct kinds of object sets: CPU sets (hwloc_cpuset_t) and NUMA node sets (hwloc_nodeset_t). These types are both typedefs to a common back end type (hwloc_bitmap_t), and…

  • |

    hwloc_cpuset_from_nodeset_strict (3) Linux Manual Page

    NAME hwlocality_helper_nodeset_convert – Converting between CPU sets and node sets Functions static void hwloc_cpuset_to_nodeset (hwloc_topology_t topology, hwloc_const_cpuset_t _cpuset, hwloc_nodeset_t nodeset) static void hwloc_cpuset_to_nodeset_strict (struct hwloc_topology *topology, hwloc_const_cpuset_t _cpuset, hwloc_nodeset_t nodeset) static void hwloc_cpuset_from_nodeset (hwloc_topology_t topology, hwloc_cpuset_t _cpuset, hwloc_const_nodeset_t nodeset) static void hwloc_cpuset_from_nodeset_strict (struct hwloc_topology *topology, hwloc_cpuset_t _cpuset, hwloc_const_nodeset_t nodeset) Detailed Description There are two semantics…

  • |

    hwloc_cpuset_from_nodeset (3) Linux Manual Page

    NAME hwlocality_helper_nodeset_convert – Converting between CPU sets and node sets Functions static void hwloc_cpuset_to_nodeset (hwloc_topology_t topology, hwloc_const_cpuset_t _cpuset, hwloc_nodeset_t nodeset) static void hwloc_cpuset_to_nodeset_strict (struct hwloc_topology *topology, hwloc_const_cpuset_t _cpuset, hwloc_nodeset_t nodeset) static void hwloc_cpuset_from_nodeset (hwloc_topology_t topology, hwloc_cpuset_t _cpuset, hwloc_const_nodeset_t nodeset) static void hwloc_cpuset_from_nodeset_strict (struct hwloc_topology *topology, hwloc_cpuset_t _cpuset, hwloc_const_nodeset_t nodeset) Detailed Description There are two semantics…

  • |

    hwloc_cpuset_from_linux_libnuma_ulongs (3) Linux Manual Page

    NAME hwlocality_linux_libnuma_ulongs – Interoperability with Linux libnuma unsigned long masks Functions static int hwloc_cpuset_to_linux_libnuma_ulongs (hwloc_topology_t topology, hwloc_const_cpuset_t cpuset, unsigned long *mask, unsigned long *maxnode) static int hwloc_nodeset_to_linux_libnuma_ulongs (hwloc_topology_t topology, hwloc_const_nodeset_t nodeset, unsigned long *mask, unsigned long *maxnode) static int hwloc_cpuset_from_linux_libnuma_ulongs (hwloc_topology_t topology, hwloc_cpuset_t cpuset, const unsigned long *mask, unsigned long maxnode) static int hwloc_nodeset_from_linux_libnuma_ulongs (hwloc_topology_t…

  • |

    hwloc_cpuset_from_linux_libnuma_bitmask (3) Linux Manual Page

    NAME hwlocality_linux_libnuma_bitmask – Interoperability with Linux libnuma bitmask Functions static struct bitmask * hwloc_cpuset_to_linux_libnuma_bitmask (hwloc_topology_t topology, hwloc_const_cpuset_t cpuset) static struct bitmask * hwloc_nodeset_to_linux_libnuma_bitmask (hwloc_topology_t topology, hwloc_const_nodeset_t nodeset) static int hwloc_cpuset_from_linux_libnuma_bitmask (hwloc_topology_t topology, hwloc_cpuset_t cpuset, const struct bitmask *bitmask) static int hwloc_nodeset_from_linux_libnuma_bitmask (hwloc_topology_t topology, hwloc_nodeset_t nodeset, const struct bitmask *bitmask) Detailed Description This interface helps converting…

  • |

    hwloc_cpuset_from_glibc_sched_affinity (3) Linux Manual Page

    NAME hwlocality_glibc_sched – Interoperability with glibc sched affinity Functions static int hwloc_cpuset_to_glibc_sched_affinity (hwloc_topology_t topology, hwloc_const_cpuset_t hwlocset, cpu_set_t *schedset, size_t schedsetsize) static int hwloc_cpuset_from_glibc_sched_affinity (hwloc_topology_t topology, hwloc_cpuset_t hwlocset, const cpu_set_t *schedset, size_t schedsetsize) Detailed Description This interface offers ways to convert between hwloc cpusets and glibc cpusets such as those manipulated by sched_getaffinity() or pthread_attr_setaffinity_np(). Note:…

  • |

    hwloc_cpubind_flags_t (3) Linux Manual Page

    NAME hwlocality_cpubinding – CPU binding Enumerations enum hwloc_cpubind_flags_t { HWLOC_CPUBIND_PROCESS, HWLOC_CPUBIND_THREAD, HWLOC_CPUBIND_STRICT, HWLOC_CPUBIND_NOMEMBIND } Functions int hwloc_set_cpubind (hwloc_topology_t topology, hwloc_const_cpuset_t set, int flags) int hwloc_get_cpubind (hwloc_topology_t topology, hwloc_cpuset_t set, int flags) int hwloc_set_proc_cpubind (hwloc_topology_t topology, hwloc_pid_t pid, hwloc_const_cpuset_t set, int flags) int hwloc_get_proc_cpubind (hwloc_topology_t topology, hwloc_pid_t pid, hwloc_cpuset_t set, int flags) int hwloc_set_thread_cpubind (hwloc_topology_t topology,…

  • |

    hwloc_const_nodeset_t (3) Linux Manual Page

    NAME hwlocality_object_sets – Object Sets (hwloc_cpuset_t and hwloc_nodeset_t) Typedefs typedef hwloc_bitmap_t hwloc_cpuset_t typedef hwloc_const_bitmap_t hwloc_const_cpuset_t typedef hwloc_bitmap_t hwloc_nodeset_t typedef hwloc_const_bitmap_t hwloc_const_nodeset_t Detailed Description Hwloc uses bitmaps to represent two distinct kinds of object sets: CPU sets (hwloc_cpuset_t) and NUMA node sets (hwloc_nodeset_t). These types are both typedefs to a common back end type (hwloc_bitmap_t), and…

  • |

    hwloc_const_cpuset_t (3) Linux Manual Page

    NAME hwlocality_object_sets – Object Sets (hwloc_cpuset_t and hwloc_nodeset_t) Typedefs typedef hwloc_bitmap_t hwloc_cpuset_t typedef hwloc_const_bitmap_t hwloc_const_cpuset_t typedef hwloc_bitmap_t hwloc_nodeset_t typedef hwloc_const_bitmap_t hwloc_const_nodeset_t Detailed Description Hwloc uses bitmaps to represent two distinct kinds of object sets: CPU sets (hwloc_cpuset_t) and NUMA node sets (hwloc_nodeset_t). These types are both typedefs to a common back end type (hwloc_bitmap_t), and…

  • |

    hwloc_const_bitmap_t (3) Linux Manual Page

    NAME hwlocality_bitmap – The bitmap API Macros #define hwloc_bitmap_foreach_begin(id, bitmap) #define hwloc_bitmap_foreach_end() Typedefs typedef struct hwloc_bitmap_s * hwloc_bitmap_t typedef const struct hwloc_bitmap_s * hwloc_const_bitmap_t Functions hwloc_bitmap_t hwloc_bitmap_alloc (void) hwloc_bitmap_t hwloc_bitmap_alloc_full (void) void hwloc_bitmap_free (hwloc_bitmap_t bitmap) hwloc_bitmap_t hwloc_bitmap_dup (hwloc_const_bitmap_t bitmap) void hwloc_bitmap_copy (hwloc_bitmap_t dst, hwloc_const_bitmap_t src) int hwloc_bitmap_snprintf (char *restrict buf, size_t buflen, hwloc_const_bitmap_t bitmap) int…

  • |

    hwloc_compare_types_e (3) Linux Manual Page

    NAME hwlocality_object_types – Object Types Typedefs typedef enum hwloc_obj_cache_type_e hwloc_obj_cache_type_t typedef enum hwloc_obj_bridge_type_e hwloc_obj_bridge_type_t typedef enum hwloc_obj_osdev_type_e hwloc_obj_osdev_type_t Enumerations enum hwloc_obj_type_t { HWLOC_OBJ_SYSTEM, HWLOC_OBJ_MACHINE, HWLOC_OBJ_NUMANODE, HWLOC_OBJ_PACKAGE, HWLOC_OBJ_CACHE, HWLOC_OBJ_CORE, HWLOC_OBJ_PU, HWLOC_OBJ_GROUP, HWLOC_OBJ_MISC, HWLOC_OBJ_BRIDGE, HWLOC_OBJ_PCI_DEVICE, HWLOC_OBJ_OS_DEVICE, HWLOC_OBJ_TYPE_MAX } enum hwloc_obj_cache_type_e { HWLOC_OBJ_CACHE_UNIFIED, HWLOC_OBJ_CACHE_DATA, HWLOC_OBJ_CACHE_INSTRUCTION } enum hwloc_obj_bridge_type_e { HWLOC_OBJ_BRIDGE_HOST, HWLOC_OBJ_BRIDGE_PCI } enum hwloc_obj_osdev_type_e { HWLOC_OBJ_OSDEV_BLOCK, HWLOC_OBJ_OSDEV_GPU, HWLOC_OBJ_OSDEV_NETWORK,…

  • |

    hwloc_compare_types (3) Linux Manual Page

    NAME hwlocality_object_types – Object Types Typedefs typedef enum hwloc_obj_cache_type_e hwloc_obj_cache_type_t typedef enum hwloc_obj_bridge_type_e hwloc_obj_bridge_type_t typedef enum hwloc_obj_osdev_type_e hwloc_obj_osdev_type_t Enumerations enum hwloc_obj_type_t { HWLOC_OBJ_SYSTEM, HWLOC_OBJ_MACHINE, HWLOC_OBJ_NUMANODE, HWLOC_OBJ_PACKAGE, HWLOC_OBJ_CACHE, HWLOC_OBJ_CORE, HWLOC_OBJ_PU, HWLOC_OBJ_GROUP, HWLOC_OBJ_MISC, HWLOC_OBJ_BRIDGE, HWLOC_OBJ_PCI_DEVICE, HWLOC_OBJ_OS_DEVICE, HWLOC_OBJ_TYPE_MAX } enum hwloc_obj_cache_type_e { HWLOC_OBJ_CACHE_UNIFIED, HWLOC_OBJ_CACHE_DATA, HWLOC_OBJ_CACHE_INSTRUCTION } enum hwloc_obj_bridge_type_e { HWLOC_OBJ_BRIDGE_HOST, HWLOC_OBJ_BRIDGE_PCI } enum hwloc_obj_osdev_type_e { HWLOC_OBJ_OSDEV_BLOCK, HWLOC_OBJ_OSDEV_GPU, HWLOC_OBJ_OSDEV_NETWORK,…

  • |

    hwloc_bridge_covers_pcibus (3) Linux Manual Page

    NAME hwlocality_advanced_io – Finding I/O objects Functions static hwloc_obj_t hwloc_get_non_io_ancestor_obj (hwloc_topology_t topology, hwloc_obj_t ioobj) static hwloc_obj_t hwloc_get_next_pcidev (hwloc_topology_t topology, hwloc_obj_t prev) static hwloc_obj_t hwloc_get_pcidev_by_busid (hwloc_topology_t topology, unsigned domain, unsigned bus, unsigned dev, unsigned func) static hwloc_obj_t hwloc_get_pcidev_by_busidstring (hwloc_topology_t topology, const char *busid) static hwloc_obj_t hwloc_get_next_osdev (hwloc_topology_t topology, hwloc_obj_t prev) static hwloc_obj_t hwloc_get_next_bridge (hwloc_topology_t topology, hwloc_obj_t…

  • |

    hwloc_bitmap_zero (3) Linux Manual Page

    NAME hwlocality_bitmap – The bitmap API Macros #define hwloc_bitmap_foreach_begin(id, bitmap) #define hwloc_bitmap_foreach_end() Typedefs typedef struct hwloc_bitmap_s * hwloc_bitmap_t typedef const struct hwloc_bitmap_s * hwloc_const_bitmap_t Functions hwloc_bitmap_t hwloc_bitmap_alloc (void) hwloc_bitmap_t hwloc_bitmap_alloc_full (void) void hwloc_bitmap_free (hwloc_bitmap_t bitmap) hwloc_bitmap_t hwloc_bitmap_dup (hwloc_const_bitmap_t bitmap) void hwloc_bitmap_copy (hwloc_bitmap_t dst, hwloc_const_bitmap_t src) int hwloc_bitmap_snprintf (char *restrict buf, size_t buflen, hwloc_const_bitmap_t bitmap) int…

  • |

    hwloc_bitmap_xor (3) Linux Manual Page

    NAME hwlocality_bitmap – The bitmap API Macros #define hwloc_bitmap_foreach_begin(id, bitmap) #define hwloc_bitmap_foreach_end() Typedefs typedef struct hwloc_bitmap_s * hwloc_bitmap_t typedef const struct hwloc_bitmap_s * hwloc_const_bitmap_t Functions hwloc_bitmap_t hwloc_bitmap_alloc (void) hwloc_bitmap_t hwloc_bitmap_alloc_full (void) void hwloc_bitmap_free (hwloc_bitmap_t bitmap) hwloc_bitmap_t hwloc_bitmap_dup (hwloc_const_bitmap_t bitmap) void hwloc_bitmap_copy (hwloc_bitmap_t dst, hwloc_const_bitmap_t src) int hwloc_bitmap_snprintf (char *restrict buf, size_t buflen, hwloc_const_bitmap_t bitmap) int…

  • |

    hwloc_bitmap_weight (3) Linux Manual Page

    NAME hwlocality_bitmap – The bitmap API Macros #define hwloc_bitmap_foreach_begin(id, bitmap) #define hwloc_bitmap_foreach_end() Typedefs typedef struct hwloc_bitmap_s * hwloc_bitmap_t typedef const struct hwloc_bitmap_s * hwloc_const_bitmap_t Functions hwloc_bitmap_t hwloc_bitmap_alloc (void) hwloc_bitmap_t hwloc_bitmap_alloc_full (void) void hwloc_bitmap_free (hwloc_bitmap_t bitmap) hwloc_bitmap_t hwloc_bitmap_dup (hwloc_const_bitmap_t bitmap) void hwloc_bitmap_copy (hwloc_bitmap_t dst, hwloc_const_bitmap_t src) int hwloc_bitmap_snprintf (char *restrict buf, size_t buflen, hwloc_const_bitmap_t bitmap) int…

  • |

    hwloc_bitmap_to_ulong (3) Linux Manual Page

    NAME hwlocality_bitmap – The bitmap API Macros #define hwloc_bitmap_foreach_begin(id, bitmap) #define hwloc_bitmap_foreach_end() Typedefs typedef struct hwloc_bitmap_s * hwloc_bitmap_t typedef const struct hwloc_bitmap_s * hwloc_const_bitmap_t Functions hwloc_bitmap_t hwloc_bitmap_alloc (void) hwloc_bitmap_t hwloc_bitmap_alloc_full (void) void hwloc_bitmap_free (hwloc_bitmap_t bitmap) hwloc_bitmap_t hwloc_bitmap_dup (hwloc_const_bitmap_t bitmap) void hwloc_bitmap_copy (hwloc_bitmap_t dst, hwloc_const_bitmap_t src) int hwloc_bitmap_snprintf (char *restrict buf, size_t buflen, hwloc_const_bitmap_t bitmap) int…