diff --git a/projects/hwloc/doc/hwloc-v2.10.0rc1-a4.pdf b/projects/hwloc/doc/hwloc-v2.10.0rc2-a4.pdf similarity index 70% rename from projects/hwloc/doc/hwloc-v2.10.0rc1-a4.pdf rename to projects/hwloc/doc/hwloc-v2.10.0rc2-a4.pdf index 1161ce58a..59a848378 100644 Binary files a/projects/hwloc/doc/hwloc-v2.10.0rc1-a4.pdf and b/projects/hwloc/doc/hwloc-v2.10.0rc2-a4.pdf differ diff --git a/projects/hwloc/doc/hwloc-v2.10.0rc1-letter.pdf b/projects/hwloc/doc/hwloc-v2.10.0rc2-letter.pdf similarity index 67% rename from projects/hwloc/doc/hwloc-v2.10.0rc1-letter.pdf rename to projects/hwloc/doc/hwloc-v2.10.0rc2-letter.pdf index d27b1b6a2..545707caa 100644 Binary files a/projects/hwloc/doc/hwloc-v2.10.0rc1-letter.pdf and b/projects/hwloc/doc/hwloc-v2.10.0rc2-letter.pdf differ diff --git a/projects/hwloc/doc/index.php b/projects/hwloc/doc/index.php index 444c7723b..6405b9852 100644 --- a/projects/hwloc/doc/index.php +++ b/projects/hwloc/doc/index.php @@ -47,7 +47,7 @@ function print_docs($desc, $letterpdf, $a4pdf, $html) { ######################################################### -$v = "v2.10.0rc1"; +$v = "v2.10.0rc2"; # See if there's doc for this prerelease, display it. if (preg_match("/[a-z]/i", $v) && file_exists("$v") && diff --git a/projects/hwloc/doc/v2.10.0rc1/a00068_source.php b/projects/hwloc/doc/v2.10.0rc2/a00068_source.php similarity index 82% rename from projects/hwloc/doc/v2.10.0rc1/a00068_source.php rename to projects/hwloc/doc/v2.10.0rc2/a00068_source.php index b07fa0d5f..03ce60137 100644 --- a/projects/hwloc/doc/v2.10.0rc1/a00068_source.php +++ b/projects/hwloc/doc/v2.10.0rc2/a00068_source.php @@ -33,7 +33,7 @@
1/*
2 * Copyright © 2009 CNRS
-
3 * Copyright © 2009-2022 Inria. All rights reserved.
+
3 * Copyright © 2009-2023 Inria. All rights reserved.
4 * Copyright © 2009-2012 Université Bordeaux
5 * Copyright © 2009-2020 Cisco Systems, Inc. All rights reserved.
6 * See COPYING in top-level directory.
@@ -233,396 +233,402 @@
669#ifndef HWLOC_HAVE_32BITS_PCI_DOMAIN
-
670 unsigned short domain; /* Only 16bits PCI domains are supported by default */
-
671#else
-
672 unsigned int domain; /* 32bits PCI domain support break the library ABI, hence it's disabled by default */
-
673#endif
-
674 unsigned char bus, dev, func;
-
675 unsigned short class_id;
- -
677 unsigned char revision;
-
678 float linkspeed; /* in GB/s */
- - -
682 union {
- - - -
686 union {
-
687 struct {
-
688#ifndef HWLOC_HAVE_32BITS_PCI_DOMAIN
-
689 unsigned short domain; /* Only 16bits PCI domains are supported by default */
-
690#else
-
691 unsigned int domain; /* 32bits PCI domain support break the library ABI, hence it's disabled by default */
-
692#endif
- - - - -
697 unsigned depth;
- - - - -
703};
-
704
- -
710 char *name;
-
711 char *value;
-
712};
-
713
-
722struct hwloc_topology;
-
727typedef struct hwloc_topology * hwloc_topology_t;
+
670 unsigned short domain;
+
672#else
+
673 unsigned int domain;
+
675#endif
+
676 unsigned char bus;
+
677 unsigned char dev;
+
678 unsigned char func;
+
679 unsigned short class_id;
+
680 unsigned short vendor_id;
+
681 unsigned short device_id;
+
682 unsigned short subvendor_id;
+
683 unsigned short subdevice_id;
+
684 unsigned char revision;
+
685 float linkspeed;
+ + +
694 union {
+ + + +
698 union {
+
699 struct {
+
700#ifndef HWLOC_HAVE_32BITS_PCI_DOMAIN
+
701 unsigned short domain;
+
703#else
+
704 unsigned int domain;
+
706#endif
+
707 unsigned char secondary_bus;
+
708 unsigned char subordinate_bus;
+ + + +
712 unsigned depth;
+ + + + +
718};
+
719
+ +
725 char *name;
+
726 char *value;
+
727};
728
-
735HWLOC_DECLSPEC int hwloc_topology_init (hwloc_topology_t *topologyp);
-
736
-
757HWLOC_DECLSPEC int hwloc_topology_load(hwloc_topology_t topology);
-
758
-
763HWLOC_DECLSPEC void hwloc_topology_destroy (hwloc_topology_t topology);
-
764
-
777HWLOC_DECLSPEC int hwloc_topology_dup(hwloc_topology_t *newtopology, hwloc_topology_t oldtopology);
-
778
-
796HWLOC_DECLSPEC int hwloc_topology_abi_check(hwloc_topology_t topology);
-
797
-
809HWLOC_DECLSPEC void hwloc_topology_check(hwloc_topology_t topology);
-
810
-
833HWLOC_DECLSPEC int hwloc_topology_get_depth(hwloc_topology_t __hwloc_restrict topology) __hwloc_attribute_pure;
-
834
-
861HWLOC_DECLSPEC int hwloc_get_type_depth (hwloc_topology_t topology, hwloc_obj_type_t type);
-
862
- - - - - - - - - - -
873
- -
894
-
908static __hwloc_inline int
- -
910
-
924static __hwloc_inline int
- -
926
-
935HWLOC_DECLSPEC hwloc_obj_type_t hwloc_get_depth_type (hwloc_topology_t topology, int depth) __hwloc_attribute_pure;
-
936
-
942HWLOC_DECLSPEC unsigned hwloc_get_nbobjs_by_depth (hwloc_topology_t topology, int depth) __hwloc_attribute_pure;
-
943
-
950static __hwloc_inline int
-
951hwloc_get_nbobjs_by_type (hwloc_topology_t topology, hwloc_obj_type_t type) __hwloc_attribute_pure;
-
952
-
959static __hwloc_inline hwloc_obj_t
-
960hwloc_get_root_obj (hwloc_topology_t topology) __hwloc_attribute_pure;
-
961
-
967HWLOC_DECLSPEC hwloc_obj_t hwloc_get_obj_by_depth (hwloc_topology_t topology, int depth, unsigned idx) __hwloc_attribute_pure;
-
968
-
976static __hwloc_inline hwloc_obj_t
-
977hwloc_get_obj_by_type (hwloc_topology_t topology, hwloc_obj_type_t type, unsigned idx) __hwloc_attribute_pure;
-
978
-
985static __hwloc_inline hwloc_obj_t
- -
987
-
996static __hwloc_inline hwloc_obj_t
- -
998 hwloc_obj_t prev);
-
999
-
1018HWLOC_DECLSPEC const char * hwloc_obj_type_string (hwloc_obj_type_t type) __hwloc_attribute_const;
-
1019
-
1037HWLOC_DECLSPEC int hwloc_obj_type_snprintf(char * __hwloc_restrict string, size_t size,
-
1038 hwloc_obj_t obj,
-
1039 int verbose);
-
1040
-
1052HWLOC_DECLSPEC int hwloc_obj_attr_snprintf(char * __hwloc_restrict string, size_t size,
-
1053 hwloc_obj_t obj, const char * __hwloc_restrict separator,
+
737struct hwloc_topology;
+
742typedef struct hwloc_topology * hwloc_topology_t;
+
743
+
750HWLOC_DECLSPEC int hwloc_topology_init (hwloc_topology_t *topologyp);
+
751
+
772HWLOC_DECLSPEC int hwloc_topology_load(hwloc_topology_t topology);
+
773
+
778HWLOC_DECLSPEC void hwloc_topology_destroy (hwloc_topology_t topology);
+
779
+
792HWLOC_DECLSPEC int hwloc_topology_dup(hwloc_topology_t *newtopology, hwloc_topology_t oldtopology);
+
793
+
811HWLOC_DECLSPEC int hwloc_topology_abi_check(hwloc_topology_t topology);
+
812
+
824HWLOC_DECLSPEC void hwloc_topology_check(hwloc_topology_t topology);
+
825
+
848HWLOC_DECLSPEC int hwloc_topology_get_depth(hwloc_topology_t __hwloc_restrict topology) __hwloc_attribute_pure;
+
849
+
876HWLOC_DECLSPEC int hwloc_get_type_depth (hwloc_topology_t topology, hwloc_obj_type_t type);
+
877
+ + + + + + + + + + +
888
+ +
909
+
923static __hwloc_inline int
+ +
925
+
939static __hwloc_inline int
+ +
941
+
950HWLOC_DECLSPEC hwloc_obj_type_t hwloc_get_depth_type (hwloc_topology_t topology, int depth) __hwloc_attribute_pure;
+
951
+
957HWLOC_DECLSPEC unsigned hwloc_get_nbobjs_by_depth (hwloc_topology_t topology, int depth) __hwloc_attribute_pure;
+
958
+
965static __hwloc_inline int
+
966hwloc_get_nbobjs_by_type (hwloc_topology_t topology, hwloc_obj_type_t type) __hwloc_attribute_pure;
+
967
+
974static __hwloc_inline hwloc_obj_t
+
975hwloc_get_root_obj (hwloc_topology_t topology) __hwloc_attribute_pure;
+
976
+
982HWLOC_DECLSPEC hwloc_obj_t hwloc_get_obj_by_depth (hwloc_topology_t topology, int depth, unsigned idx) __hwloc_attribute_pure;
+
983
+
991static __hwloc_inline hwloc_obj_t
+
992hwloc_get_obj_by_type (hwloc_topology_t topology, hwloc_obj_type_t type, unsigned idx) __hwloc_attribute_pure;
+
993
+
1000static __hwloc_inline hwloc_obj_t
+ +
1002
+
1011static __hwloc_inline hwloc_obj_t
+ +
1013 hwloc_obj_t prev);
+
1014
+
1033HWLOC_DECLSPEC const char * hwloc_obj_type_string (hwloc_obj_type_t type) __hwloc_attribute_const;
+
1034
+
1052HWLOC_DECLSPEC int hwloc_obj_type_snprintf(char * __hwloc_restrict string, size_t size,
+
1053 hwloc_obj_t obj,
1054 int verbose);
1055
-
1079HWLOC_DECLSPEC int hwloc_type_sscanf(const char *string,
-
1080 hwloc_obj_type_t *typep,
-
1081 union hwloc_obj_attr_u *attrp, size_t attrsize);
-
1082
-
1104HWLOC_DECLSPEC int hwloc_type_sscanf_as_depth(const char *string,
-
1105 hwloc_obj_type_t *typep,
-
1106 hwloc_topology_t topology, int *depthp);
-
1107
-
1126static __hwloc_inline const char *
-
1127hwloc_obj_get_info_by_name(hwloc_obj_t obj, const char *name) __hwloc_attribute_pure;
-
1128
-
1145HWLOC_DECLSPEC int hwloc_obj_add_info(hwloc_obj_t obj, const char *name, const char *value);
-
1146
-
1218typedef enum {
- -
1222
- -
1226
- -
1251
- - -
1269
-
1276HWLOC_DECLSPEC int hwloc_set_cpubind(hwloc_topology_t topology, hwloc_const_cpuset_t set, int flags);
-
1277
-
1286HWLOC_DECLSPEC int hwloc_get_cpubind(hwloc_topology_t topology, hwloc_cpuset_t set, int flags);
-
1287
-
1301HWLOC_DECLSPEC int hwloc_set_proc_cpubind(hwloc_topology_t topology, hwloc_pid_t pid, hwloc_const_cpuset_t set, int flags);
+
1067HWLOC_DECLSPEC int hwloc_obj_attr_snprintf(char * __hwloc_restrict string, size_t size,
+
1068 hwloc_obj_t obj, const char * __hwloc_restrict separator,
+
1069 int verbose);
+
1070
+
1094HWLOC_DECLSPEC int hwloc_type_sscanf(const char *string,
+
1095 hwloc_obj_type_t *typep,
+
1096 union hwloc_obj_attr_u *attrp, size_t attrsize);
+
1097
+
1119HWLOC_DECLSPEC int hwloc_type_sscanf_as_depth(const char *string,
+
1120 hwloc_obj_type_t *typep,
+
1121 hwloc_topology_t topology, int *depthp);
+
1122
+
1141static __hwloc_inline const char *
+
1142hwloc_obj_get_info_by_name(hwloc_obj_t obj, const char *name) __hwloc_attribute_pure;
+
1143
+
1160HWLOC_DECLSPEC int hwloc_obj_add_info(hwloc_obj_t obj, const char *name, const char *value);
+
1161
+
1233typedef enum {
+ +
1237
+ +
1241
+ +
1266
+ + +
1284
+
1291HWLOC_DECLSPEC int hwloc_set_cpubind(hwloc_topology_t topology, hwloc_const_cpuset_t set, int flags);
+
1292
+
1301HWLOC_DECLSPEC int hwloc_get_cpubind(hwloc_topology_t topology, hwloc_cpuset_t set, int flags);
1302
-
1320HWLOC_DECLSPEC int hwloc_get_proc_cpubind(hwloc_topology_t topology, hwloc_pid_t pid, hwloc_cpuset_t set, int flags);
-
1321
-
1322#ifdef hwloc_thread_t
-
1332HWLOC_DECLSPEC int hwloc_set_thread_cpubind(hwloc_topology_t topology, hwloc_thread_t thread, hwloc_const_cpuset_t set, int flags);
-
1333#endif
-
1334
-
1335#ifdef hwloc_thread_t
-
1349HWLOC_DECLSPEC int hwloc_get_thread_cpubind(hwloc_topology_t topology, hwloc_thread_t thread, hwloc_cpuset_t set, int flags);
-
1350#endif
-
1351
-
1371HWLOC_DECLSPEC int hwloc_get_last_cpu_location(hwloc_topology_t topology, hwloc_cpuset_t set, int flags);
-
1372
-
1395HWLOC_DECLSPEC int hwloc_get_proc_last_cpu_location(hwloc_topology_t topology, hwloc_pid_t pid, hwloc_cpuset_t set, int flags);
-
1396
-
1476typedef enum {
- -
1485
- -
1496
- -
1506
- -
1515
- -
1522
- - -
1531
-
1545typedef enum {
- -
1551
- -
1556
- -
1564
- -
1570
- -
1583
- - -
1595
-
1612HWLOC_DECLSPEC int hwloc_set_membind(hwloc_topology_t topology, hwloc_const_bitmap_t set, hwloc_membind_policy_t policy, int flags);
-
1613
-
1663HWLOC_DECLSPEC int hwloc_get_membind(hwloc_topology_t topology, hwloc_bitmap_t set, hwloc_membind_policy_t * policy, int flags);
-
1664
-
1678HWLOC_DECLSPEC int hwloc_set_proc_membind(hwloc_topology_t topology, hwloc_pid_t pid, hwloc_const_bitmap_t set, hwloc_membind_policy_t policy, int flags);
+
1316HWLOC_DECLSPEC int hwloc_set_proc_cpubind(hwloc_topology_t topology, hwloc_pid_t pid, hwloc_const_cpuset_t set, int flags);
+
1317
+
1335HWLOC_DECLSPEC int hwloc_get_proc_cpubind(hwloc_topology_t topology, hwloc_pid_t pid, hwloc_cpuset_t set, int flags);
+
1336
+
1337#ifdef hwloc_thread_t
+
1347HWLOC_DECLSPEC int hwloc_set_thread_cpubind(hwloc_topology_t topology, hwloc_thread_t thread, hwloc_const_cpuset_t set, int flags);
+
1348#endif
+
1349
+
1350#ifdef hwloc_thread_t
+
1364HWLOC_DECLSPEC int hwloc_get_thread_cpubind(hwloc_topology_t topology, hwloc_thread_t thread, hwloc_cpuset_t set, int flags);
+
1365#endif
+
1366
+
1386HWLOC_DECLSPEC int hwloc_get_last_cpu_location(hwloc_topology_t topology, hwloc_cpuset_t set, int flags);
+
1387
+
1410HWLOC_DECLSPEC int hwloc_get_proc_last_cpu_location(hwloc_topology_t topology, hwloc_pid_t pid, hwloc_cpuset_t set, int flags);
+
1411
+
1491typedef enum {
+ +
1500
+ +
1511
+ +
1521
+ +
1530
+ +
1537
+ + +
1546
+
1560typedef enum {
+ +
1566
+ +
1571
+ +
1579
+ +
1585
+ +
1598
+ + +
1610
+
1627HWLOC_DECLSPEC int hwloc_set_membind(hwloc_topology_t topology, hwloc_const_bitmap_t set, hwloc_membind_policy_t policy, int flags);
+
1628
+
1678HWLOC_DECLSPEC int hwloc_get_membind(hwloc_topology_t topology, hwloc_bitmap_t set, hwloc_membind_policy_t * policy, int flags);
1679
-
1724HWLOC_DECLSPEC int hwloc_get_proc_membind(hwloc_topology_t topology, hwloc_pid_t pid, hwloc_bitmap_t set, hwloc_membind_policy_t * policy, int flags);
-
1725
-
1736HWLOC_DECLSPEC int hwloc_set_area_membind(hwloc_topology_t topology, const void *addr, size_t len, hwloc_const_bitmap_t set, hwloc_membind_policy_t policy, int flags);
-
1737
-
1769HWLOC_DECLSPEC int hwloc_get_area_membind(hwloc_topology_t topology, const void *addr, size_t len, hwloc_bitmap_t set, hwloc_membind_policy_t * policy, int flags);
-
1770
-
1793HWLOC_DECLSPEC int hwloc_get_area_memlocation(hwloc_topology_t topology, const void *addr, size_t len, hwloc_bitmap_t set, int flags);
-
1794
-
1804HWLOC_DECLSPEC void *hwloc_alloc(hwloc_topology_t topology, size_t len);
-
1805
-
1821HWLOC_DECLSPEC void *hwloc_alloc_membind(hwloc_topology_t topology, size_t len, hwloc_const_bitmap_t set, hwloc_membind_policy_t policy, int flags) __hwloc_attribute_malloc;
-
1822
-
1837static __hwloc_inline void *
-
1838hwloc_alloc_membind_policy(hwloc_topology_t topology, size_t len, hwloc_const_bitmap_t set, hwloc_membind_policy_t policy, int flags) __hwloc_attribute_malloc;
-
1839
-
1845HWLOC_DECLSPEC int hwloc_free(hwloc_topology_t topology, void *addr, size_t len);
-
1846
-
1892HWLOC_DECLSPEC int hwloc_topology_set_pid(hwloc_topology_t __hwloc_restrict topology, hwloc_pid_t pid);
-
1893
-
1925HWLOC_DECLSPEC int hwloc_topology_set_synthetic(hwloc_topology_t __hwloc_restrict topology, const char * __hwloc_restrict description);
-
1926
-
1958HWLOC_DECLSPEC int hwloc_topology_set_xml(hwloc_topology_t __hwloc_restrict topology, const char * __hwloc_restrict xmlpath);
-
1959
-
1991HWLOC_DECLSPEC int hwloc_topology_set_xmlbuffer(hwloc_topology_t __hwloc_restrict topology, const char * __hwloc_restrict buffer, int size);
-
1992
- - - -
2001
-
2019HWLOC_DECLSPEC int hwloc_topology_set_components(hwloc_topology_t __hwloc_restrict topology, unsigned long flags, const char * __hwloc_restrict name);
-
2020
- - -
2062
- -
2082
- -
2103
- -
2127
- -
2152
- -
2174
- +
1693HWLOC_DECLSPEC int hwloc_set_proc_membind(hwloc_topology_t topology, hwloc_pid_t pid, hwloc_const_bitmap_t set, hwloc_membind_policy_t policy, int flags);
+
1694
+
1739HWLOC_DECLSPEC int hwloc_get_proc_membind(hwloc_topology_t topology, hwloc_pid_t pid, hwloc_bitmap_t set, hwloc_membind_policy_t * policy, int flags);
+
1740
+
1751HWLOC_DECLSPEC int hwloc_set_area_membind(hwloc_topology_t topology, const void *addr, size_t len, hwloc_const_bitmap_t set, hwloc_membind_policy_t policy, int flags);
+
1752
+
1784HWLOC_DECLSPEC int hwloc_get_area_membind(hwloc_topology_t topology, const void *addr, size_t len, hwloc_bitmap_t set, hwloc_membind_policy_t * policy, int flags);
+
1785
+
1808HWLOC_DECLSPEC int hwloc_get_area_memlocation(hwloc_topology_t topology, const void *addr, size_t len, hwloc_bitmap_t set, int flags);
+
1809
+
1819HWLOC_DECLSPEC void *hwloc_alloc(hwloc_topology_t topology, size_t len);
+
1820
+
1836HWLOC_DECLSPEC void *hwloc_alloc_membind(hwloc_topology_t topology, size_t len, hwloc_const_bitmap_t set, hwloc_membind_policy_t policy, int flags) __hwloc_attribute_malloc;
+
1837
+
1852static __hwloc_inline void *
+
1853hwloc_alloc_membind_policy(hwloc_topology_t topology, size_t len, hwloc_const_bitmap_t set, hwloc_membind_policy_t policy, int flags) __hwloc_attribute_malloc;
+
1854
+
1860HWLOC_DECLSPEC int hwloc_free(hwloc_topology_t topology, void *addr, size_t len);
+
1861
+
1907HWLOC_DECLSPEC int hwloc_topology_set_pid(hwloc_topology_t __hwloc_restrict topology, hwloc_pid_t pid);
+
1908
+
1940HWLOC_DECLSPEC int hwloc_topology_set_synthetic(hwloc_topology_t __hwloc_restrict topology, const char * __hwloc_restrict description);
+
1941
+
1973HWLOC_DECLSPEC int hwloc_topology_set_xml(hwloc_topology_t __hwloc_restrict topology, const char * __hwloc_restrict xmlpath);
+
1974
+
2006HWLOC_DECLSPEC int hwloc_topology_set_xmlbuffer(hwloc_topology_t __hwloc_restrict topology, const char * __hwloc_restrict buffer, int size);
+
2007
+ + + +
2016
+
2034HWLOC_DECLSPEC int hwloc_topology_set_components(hwloc_topology_t __hwloc_restrict topology, unsigned long flags, const char * __hwloc_restrict name);
+
2035
+ + +
2077
+ +
2097
+ +
2118
+ +
2142
+ +
2167
+
2189
- -
2196
- -
2203
- - -
2210
-
2225HWLOC_DECLSPEC int hwloc_topology_set_flags (hwloc_topology_t topology, unsigned long flags);
-
2226
-
2238HWLOC_DECLSPEC unsigned long hwloc_topology_get_flags (hwloc_topology_t topology);
-
2239
-
2249HWLOC_DECLSPEC int hwloc_topology_is_thissystem(hwloc_topology_t __hwloc_restrict topology) __hwloc_attribute_pure;
-
2250
- -
2254 unsigned char pu;
-
2256 unsigned char numa;
-
2258 unsigned char numa_memory;
-
2260 unsigned char disallowed_pu;
-
2262 unsigned char disallowed_numa;
-
2264 unsigned char cpukind_efficiency;
-
2265};
-
2266
- - - -
2278 unsigned char set_proc_cpubind;
-
2280 unsigned char get_proc_cpubind;
- - -
2286 unsigned char set_thread_cpubind;
-
2288 unsigned char get_thread_cpubind;
- - - -
2295};
-
2296
- - - -
2308 unsigned char set_proc_membind;
-
2310 unsigned char get_proc_membind;
- - -
2316 unsigned char set_area_membind;
-
2318 unsigned char get_area_membind;
-
2320 unsigned char alloc_membind;
-
2322 unsigned char firsttouch_membind;
-
2324 unsigned char bind_membind;
-
2326 unsigned char interleave_membind;
-
2328 unsigned char nexttouch_membind;
-
2330 unsigned char migrate_membind;
- -
2333};
-
2334
- -
2339 unsigned char imported_support;
-
2340};
-
2341
- - - - - -
2353};
-
2354
-
2384HWLOC_DECLSPEC const struct hwloc_topology_support *hwloc_topology_get_support(hwloc_topology_t __hwloc_restrict topology);
-
2385
- - -
2402
- -
2410
- -
2424
- - -
2440
- -
2446
- -
2452
- -
2460
- -
2468
- -
2476
- -
2482
-
2493HWLOC_DECLSPEC void hwloc_topology_set_userdata(hwloc_topology_t topology, const void *userdata);
-
2494
-
2503HWLOC_DECLSPEC void * hwloc_topology_get_userdata(hwloc_topology_t topology);
-
2504
- - -
2521
- -
2527
- -
2534
- -
2540
- - -
2547
-
2583HWLOC_DECLSPEC int hwloc_topology_restrict(hwloc_topology_t __hwloc_restrict topology, hwloc_const_bitmap_t set, unsigned long flags);
-
2584
- - -
2592
- -
2601
-
2604 HWLOC_ALLOW_FLAG_CUSTOM = (1UL<<2)
- -
2606
-
2624HWLOC_DECLSPEC int hwloc_topology_allow(hwloc_topology_t __hwloc_restrict topology, hwloc_const_cpuset_t cpuset, hwloc_const_nodeset_t nodeset, unsigned long flags);
-
2625
-
2647HWLOC_DECLSPEC hwloc_obj_t hwloc_topology_insert_misc_object(hwloc_topology_t topology, hwloc_obj_t parent, const char *name);
-
2648
- -
2667
- -
2680
- -
2740
- -
2754
-
2772HWLOC_DECLSPEC int hwloc_topology_refresh(hwloc_topology_t topology);
-
2773
-
2778#ifdef __cplusplus
-
2779} /* extern "C" */
-
2780#endif
-
2781
-
2782
-
2783/* high-level helpers */
-
2784#include "hwloc/helper.h"
-
2785
-
2786/* inline code of some functions above */
-
2787#include "hwloc/inlines.h"
+ +
2204
+ +
2211
+ +
2218
+ + +
2225
+
2240HWLOC_DECLSPEC int hwloc_topology_set_flags (hwloc_topology_t topology, unsigned long flags);
+
2241
+
2253HWLOC_DECLSPEC unsigned long hwloc_topology_get_flags (hwloc_topology_t topology);
+
2254
+
2264HWLOC_DECLSPEC int hwloc_topology_is_thissystem(hwloc_topology_t __hwloc_restrict topology) __hwloc_attribute_pure;
+
2265
+ +
2269 unsigned char pu;
+
2271 unsigned char numa;
+
2273 unsigned char numa_memory;
+
2275 unsigned char disallowed_pu;
+
2277 unsigned char disallowed_numa;
+
2279 unsigned char cpukind_efficiency;
+
2280};
+
2281
+ + + +
2293 unsigned char set_proc_cpubind;
+
2295 unsigned char get_proc_cpubind;
+ + +
2301 unsigned char set_thread_cpubind;
+
2303 unsigned char get_thread_cpubind;
+ + + +
2310};
+
2311
+ + + +
2323 unsigned char set_proc_membind;
+
2325 unsigned char get_proc_membind;
+ + +
2331 unsigned char set_area_membind;
+
2333 unsigned char get_area_membind;
+
2335 unsigned char alloc_membind;
+
2337 unsigned char firsttouch_membind;
+
2339 unsigned char bind_membind;
+
2341 unsigned char interleave_membind;
+
2343 unsigned char nexttouch_membind;
+
2345 unsigned char migrate_membind;
+ +
2348};
+
2349
+ +
2354 unsigned char imported_support;
+
2355};
+
2356
+ + + + + +
2368};
+
2369
+
2399HWLOC_DECLSPEC const struct hwloc_topology_support *hwloc_topology_get_support(hwloc_topology_t __hwloc_restrict topology);
+
2400
+ + +
2417
+ +
2425
+ +
2439
+ + +
2455
+ +
2461
+ +
2467
+ +
2475
+ +
2483
+ +
2491
+ +
2497
+
2508HWLOC_DECLSPEC void hwloc_topology_set_userdata(hwloc_topology_t topology, const void *userdata);
+
2509
+
2518HWLOC_DECLSPEC void * hwloc_topology_get_userdata(hwloc_topology_t topology);
+
2519
+ + +
2536
+ +
2542
+ +
2549
+ +
2555
+ + +
2562
+
2598HWLOC_DECLSPEC int hwloc_topology_restrict(hwloc_topology_t __hwloc_restrict topology, hwloc_const_bitmap_t set, unsigned long flags);
+
2599
+ + +
2607
+ +
2616
+
2619 HWLOC_ALLOW_FLAG_CUSTOM = (1UL<<2)
+ +
2621
+
2639HWLOC_DECLSPEC int hwloc_topology_allow(hwloc_topology_t __hwloc_restrict topology, hwloc_const_cpuset_t cpuset, hwloc_const_nodeset_t nodeset, unsigned long flags);
+
2640
+
2662HWLOC_DECLSPEC hwloc_obj_t hwloc_topology_insert_misc_object(hwloc_topology_t topology, hwloc_obj_t parent, const char *name);
+
2663
+ +
2682
+ +
2695
+ +
2755
+ +
2769
+
2787HWLOC_DECLSPEC int hwloc_topology_refresh(hwloc_topology_t topology);
2788
-
2789/* memory attributes */
-
2790#include "hwloc/memattrs.h"
-
2791
-
2792/* kinds of CPU cores */
-
2793#include "hwloc/cpukinds.h"
-
2794
-
2795/* exporting to XML or synthetic */
-
2796#include "hwloc/export.h"
+
2793#ifdef __cplusplus
+
2794} /* extern "C" */
+
2795#endif
+
2796
2797
-
2798/* distances */
-
2799#include "hwloc/distances.h"
+
2798/* high-level helpers */
+
2799#include "hwloc/helper.h"
2800
-
2801/* topology diffs */
-
2802#include "hwloc/diff.h"
+
2801/* inline code of some functions above */
+
2802#include "hwloc/inlines.h"
2803
-
2804/* deprecated headers */
-
2805#include "hwloc/deprecated.h"
+
2804/* memory attributes */
+
2805#include "hwloc/memattrs.h"
2806
-
2807#endif /* HWLOC_H */
+
2807/* kinds of CPU cores */
+
2808#include "hwloc/cpukinds.h"
+
2809
+
2810/* exporting to XML or synthetic */
+
2811#include "hwloc/export.h"
+
2812
+
2813/* distances */
+
2814#include "hwloc/distances.h"
+
2815
+
2816/* topology diffs */
+
2817#include "hwloc/diff.h"
+
2818
+
2819/* deprecated headers */
+
2820#include "hwloc/deprecated.h"
+
2821
+
2822#endif /* HWLOC_H */
unsigned hwloc_get_api_version(void)
Indicate at runtime which hwloc API version was used at build time.
hwloc_const_bitmap_t hwloc_const_cpuset_t
A non-modifiable hwloc_cpuset_t.
Definition: hwloc.h:163
hwloc_const_bitmap_t hwloc_const_nodeset_t
A non-modifiable hwloc_nodeset_t.
Definition: hwloc.h:181
@@ -671,7 +677,7 @@
int hwloc_topology_init(hwloc_topology_t *topologyp)
Allocate a topology context.
int hwloc_topology_abi_check(hwloc_topology_t topology)
Verify that the topology is compatible with the current hwloc library.
int hwloc_topology_dup(hwloc_topology_t *newtopology, hwloc_topology_t oldtopology)
Duplicate a topology.
-
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:727
+
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:742
void hwloc_topology_destroy(hwloc_topology_t topology)
Terminate and free a topology context.
int hwloc_topology_load(hwloc_topology_t topology)
Build the actual topology.
void hwloc_topology_check(hwloc_topology_t topology)
Run internal checks on a topology structure.
@@ -688,15 +694,15 @@
static hwloc_obj_t hwloc_get_next_obj_by_depth(hwloc_topology_t topology, int depth, hwloc_obj_t prev)
Returns the next object at depth depth.
int hwloc_topology_get_depth(hwloc_topology_t restrict topology)
Get the depth of the hierarchical tree of objects.
int hwloc_get_memory_parents_depth(hwloc_topology_t topology)
Return the depth of parents where memory objects are attached.
-
hwloc_get_type_depth_e
Definition: hwloc.h:863
-
@ HWLOC_TYPE_DEPTH_UNKNOWN
No object of given type exists in the topology.
Definition: hwloc.h:864
-
@ HWLOC_TYPE_DEPTH_NUMANODE
Virtual depth for NUMA nodes.
Definition: hwloc.h:866
-
@ HWLOC_TYPE_DEPTH_MEMCACHE
Virtual depth for MemCache object.
Definition: hwloc.h:871
-
@ HWLOC_TYPE_DEPTH_MISC
Virtual depth for Misc object.
Definition: hwloc.h:870
-
@ HWLOC_TYPE_DEPTH_PCI_DEVICE
Virtual depth for PCI device object level.
Definition: hwloc.h:868
-
@ HWLOC_TYPE_DEPTH_MULTIPLE
Objects of given type exist at different depth in the topology (only for Groups).
Definition: hwloc.h:865
-
@ HWLOC_TYPE_DEPTH_BRIDGE
Virtual depth for bridge object level.
Definition: hwloc.h:867
-
@ HWLOC_TYPE_DEPTH_OS_DEVICE
Virtual depth for software device object level.
Definition: hwloc.h:869
+
hwloc_get_type_depth_e
Definition: hwloc.h:878
+
@ HWLOC_TYPE_DEPTH_UNKNOWN
No object of given type exists in the topology.
Definition: hwloc.h:879
+
@ HWLOC_TYPE_DEPTH_NUMANODE
Virtual depth for NUMA nodes.
Definition: hwloc.h:881
+
@ HWLOC_TYPE_DEPTH_MEMCACHE
Virtual depth for MemCache object.
Definition: hwloc.h:886
+
@ HWLOC_TYPE_DEPTH_MISC
Virtual depth for Misc object.
Definition: hwloc.h:885
+
@ HWLOC_TYPE_DEPTH_PCI_DEVICE
Virtual depth for PCI device object level.
Definition: hwloc.h:883
+
@ HWLOC_TYPE_DEPTH_MULTIPLE
Objects of given type exist at different depth in the topology (only for Groups).
Definition: hwloc.h:880
+
@ HWLOC_TYPE_DEPTH_BRIDGE
Virtual depth for bridge object level.
Definition: hwloc.h:882
+
@ HWLOC_TYPE_DEPTH_OS_DEVICE
Virtual depth for software device object level.
Definition: hwloc.h:884
int hwloc_type_sscanf(const char *string, hwloc_obj_type_t *typep, union hwloc_obj_attr_u *attrp, size_t attrsize)
Return an object type and attributes from a type string.
int hwloc_type_sscanf_as_depth(const char *string, hwloc_obj_type_t *typep, hwloc_topology_t topology, int *depthp)
Return an object type and its level depth from a type string.
const char * hwloc_obj_type_string(hwloc_obj_type_t type)
Return a constant stringified object type.
@@ -704,7 +710,7 @@
int hwloc_obj_type_snprintf(char *restrict string, size_t size, hwloc_obj_t obj, int verbose)
Stringify the type of a given topology object into a human-readable form.
static const char * hwloc_obj_get_info_by_name(hwloc_obj_t obj, const char *name)
Search the given name in object infos and return the corresponding value.
int hwloc_obj_add_info(hwloc_obj_t obj, const char *name, const char *value)
Add the given name and value pair to the given object info attributes.
-
hwloc_cpubind_flags_t
Process/Thread binding flags.
Definition: hwloc.h:1218
+
hwloc_cpubind_flags_t
Process/Thread binding flags.
Definition: hwloc.h:1233
int hwloc_set_proc_cpubind(hwloc_topology_t topology, hwloc_pid_t pid, hwloc_const_cpuset_t set, int flags)
Bind a process pid on CPUs given in physical bitmap set.
int hwloc_set_cpubind(hwloc_topology_t topology, hwloc_const_cpuset_t set, int flags)
Bind current process or thread on CPUs given in physical bitmap set.
int hwloc_get_proc_last_cpu_location(hwloc_topology_t topology, hwloc_pid_t pid, hwloc_cpuset_t set, int flags)
Get the last physical CPU where a process ran.
@@ -713,10 +719,10 @@
int hwloc_set_thread_cpubind(hwloc_topology_t topology, hwloc_thread_t thread, hwloc_const_cpuset_t set, int flags)
Bind a thread thread on CPUs given in physical bitmap set.
int hwloc_get_thread_cpubind(hwloc_topology_t topology, hwloc_thread_t thread, hwloc_cpuset_t set, int flags)
Get the current physical binding of thread tid.
int hwloc_get_last_cpu_location(hwloc_topology_t topology, hwloc_cpuset_t set, int flags)
Get the last physical CPU where the current process or thread ran.
-
@ HWLOC_CPUBIND_PROCESS
Bind all threads of the current (possibly) multithreaded process.
Definition: hwloc.h:1221
-
@ HWLOC_CPUBIND_NOMEMBIND
Avoid any effect on memory binding.
Definition: hwloc.h:1267
-
@ HWLOC_CPUBIND_STRICT
Request for strict binding from the OS.
Definition: hwloc.h:1250
-
@ HWLOC_CPUBIND_THREAD
Bind current thread of current process.
Definition: hwloc.h:1225
+
@ HWLOC_CPUBIND_PROCESS
Bind all threads of the current (possibly) multithreaded process.
Definition: hwloc.h:1236
+
@ HWLOC_CPUBIND_NOMEMBIND
Avoid any effect on memory binding.
Definition: hwloc.h:1282
+
@ HWLOC_CPUBIND_STRICT
Request for strict binding from the OS.
Definition: hwloc.h:1265
+
@ HWLOC_CPUBIND_THREAD
Bind current thread of current process.
Definition: hwloc.h:1240
int hwloc_set_membind(hwloc_topology_t topology, hwloc_const_bitmap_t set, hwloc_membind_policy_t policy, int flags)
Set the default memory binding policy of the current process or thread to prefer the NUMA node(s) spe...
int hwloc_get_proc_membind(hwloc_topology_t topology, hwloc_pid_t pid, hwloc_bitmap_t set, hwloc_membind_policy_t *policy, int flags)
Query the default memory binding policy and physical locality of the specified process.
int hwloc_free(hwloc_topology_t topology, void *addr, size_t len)
Free memory that was previously allocated by hwloc_alloc() or hwloc_alloc_membind().
@@ -724,31 +730,31 @@
static void * hwloc_alloc_membind_policy(hwloc_topology_t topology, size_t len, hwloc_const_bitmap_t set, hwloc_membind_policy_t policy, int flags)
Allocate some memory on NUMA memory nodes specified by set.
void * hwloc_alloc(hwloc_topology_t topology, size_t len)
Allocate some memory.
int hwloc_get_area_membind(hwloc_topology_t topology, const void *addr, size_t len, hwloc_bitmap_t set, hwloc_membind_policy_t *policy, int flags)
Query the CPUs near the physical NUMA node(s) and binding policy of the memory identified by (addr,...
-
hwloc_membind_flags_t
Memory binding flags.
Definition: hwloc.h:1545
+
hwloc_membind_flags_t
Memory binding flags.
Definition: hwloc.h:1560
int hwloc_set_proc_membind(hwloc_topology_t topology, hwloc_pid_t pid, hwloc_const_bitmap_t set, hwloc_membind_policy_t policy, int flags)
Set the default memory binding policy of the specified process to prefer the NUMA node(s) specified b...
-
hwloc_membind_policy_t
Memory binding policy.
Definition: hwloc.h:1476
+
hwloc_membind_policy_t
Memory binding policy.
Definition: hwloc.h:1491
void * hwloc_alloc_membind(hwloc_topology_t topology, size_t len, hwloc_const_bitmap_t set, hwloc_membind_policy_t policy, int flags)
Allocate some memory on NUMA memory nodes specified by set.
int hwloc_get_membind(hwloc_topology_t topology, hwloc_bitmap_t set, hwloc_membind_policy_t *policy, int flags)
Query the default memory binding policy and physical locality of the current process or thread.
int hwloc_set_area_membind(hwloc_topology_t topology, const void *addr, size_t len, hwloc_const_bitmap_t set, hwloc_membind_policy_t policy, int flags)
Bind the already-allocated memory identified by (addr, len) to the NUMA node(s) specified by set.
-
@ HWLOC_MEMBIND_STRICT
Definition: hwloc.h:1563
-
@ HWLOC_MEMBIND_PROCESS
Set policy for all threads of the specified (possibly multithreaded) process. This flag is mutually e...
Definition: hwloc.h:1550
-
@ HWLOC_MEMBIND_THREAD
Set policy for a specific thread of the current process. This flag is mutually exclusive with HWLOC_M...
Definition: hwloc.h:1555
-
@ HWLOC_MEMBIND_BYNODESET
Consider the bitmap argument as a nodeset.
Definition: hwloc.h:1593
-
@ HWLOC_MEMBIND_MIGRATE
Migrate existing allocated memory. If the memory cannot be migrated and the HWLOC_MEMBIND_STRICT flag...
Definition: hwloc.h:1569
-
@ HWLOC_MEMBIND_NOCPUBIND
Avoid any effect on CPU binding.
Definition: hwloc.h:1582
-
@ HWLOC_MEMBIND_DEFAULT
Reset the memory allocation policy to the system default. Depending on the operating system,...
Definition: hwloc.h:1484
-
@ HWLOC_MEMBIND_MIXED
Returned by get_membind() functions when multiple threads or parts of a memory area have differing me...
Definition: hwloc.h:1529
-
@ HWLOC_MEMBIND_FIRSTTOUCH
Allocate each memory page individually on the local NUMA node of the thread that touches it.
Definition: hwloc.h:1495
-
@ HWLOC_MEMBIND_BIND
Allocate memory on the specified nodes.
Definition: hwloc.h:1505
-
@ HWLOC_MEMBIND_INTERLEAVE
Allocate memory on the given nodes in an interleaved / round-robin manner. The precise layout of the ...
Definition: hwloc.h:1514
-
@ HWLOC_MEMBIND_NEXTTOUCH
For each page bound with this policy, by next time it is touched (and next time only),...
Definition: hwloc.h:1521
+
@ HWLOC_MEMBIND_STRICT
Definition: hwloc.h:1578
+
@ HWLOC_MEMBIND_PROCESS
Set policy for all threads of the specified (possibly multithreaded) process. This flag is mutually e...
Definition: hwloc.h:1565
+
@ HWLOC_MEMBIND_THREAD
Set policy for a specific thread of the current process. This flag is mutually exclusive with HWLOC_M...
Definition: hwloc.h:1570
+
@ HWLOC_MEMBIND_BYNODESET
Consider the bitmap argument as a nodeset.
Definition: hwloc.h:1608
+
@ HWLOC_MEMBIND_MIGRATE
Migrate existing allocated memory. If the memory cannot be migrated and the HWLOC_MEMBIND_STRICT flag...
Definition: hwloc.h:1584
+
@ HWLOC_MEMBIND_NOCPUBIND
Avoid any effect on CPU binding.
Definition: hwloc.h:1597
+
@ HWLOC_MEMBIND_DEFAULT
Reset the memory allocation policy to the system default. Depending on the operating system,...
Definition: hwloc.h:1499
+
@ HWLOC_MEMBIND_MIXED
Returned by get_membind() functions when multiple threads or parts of a memory area have differing me...
Definition: hwloc.h:1544
+
@ HWLOC_MEMBIND_FIRSTTOUCH
Allocate each memory page individually on the local NUMA node of the thread that touches it.
Definition: hwloc.h:1510
+
@ HWLOC_MEMBIND_BIND
Allocate memory on the specified nodes.
Definition: hwloc.h:1520
+
@ HWLOC_MEMBIND_INTERLEAVE
Allocate memory on the given nodes in an interleaved / round-robin manner. The precise layout of the ...
Definition: hwloc.h:1529
+
@ HWLOC_MEMBIND_NEXTTOUCH
For each page bound with this policy, by next time it is touched (and next time only),...
Definition: hwloc.h:1536
int hwloc_topology_set_xmlbuffer(hwloc_topology_t restrict topology, const char *restrict buffer, int size)
Enable XML based topology using a memory buffer (instead of a file, as with hwloc_topology_set_xml())...
int hwloc_topology_set_pid(hwloc_topology_t restrict topology, hwloc_pid_t pid)
Change which process the topology is viewed from.
int hwloc_topology_set_synthetic(hwloc_topology_t restrict topology, const char *restrict description)
Enable synthetic topology.
int hwloc_topology_set_xml(hwloc_topology_t restrict topology, const char *restrict xmlpath)
Enable XML-file based topology.
-
hwloc_topology_components_flag_e
Flags to be passed to hwloc_topology_set_components()
Definition: hwloc.h:1995
+
hwloc_topology_components_flag_e
Flags to be passed to hwloc_topology_set_components()
Definition: hwloc.h:2010
int hwloc_topology_set_components(hwloc_topology_t restrict topology, unsigned long flags, const char *restrict name)
Prevent a discovery component from being used for a topology.
-
@ HWLOC_TOPOLOGY_COMPONENTS_FLAG_BLACKLIST
Blacklist the target component from being used.
Definition: hwloc.h:1999
+
@ HWLOC_TOPOLOGY_COMPONENTS_FLAG_BLACKLIST
Blacklist the target component from being used.
Definition: hwloc.h:2014
unsigned long hwloc_topology_get_flags(hwloc_topology_t topology)
Get OR'ed flags of a topology.
int hwloc_topology_set_io_types_filter(hwloc_topology_t topology, enum hwloc_type_filter_e filter)
Set the filtering for all I/O object types.
int hwloc_topology_get_type_filter(hwloc_topology_t topology, hwloc_obj_type_t type, enum hwloc_type_filter_e *filter)
Get the current filtering for the given object type.
@@ -756,45 +762,45 @@
int hwloc_topology_set_cache_types_filter(hwloc_topology_t topology, enum hwloc_type_filter_e filter)
Set the filtering for all CPU cache object types.
int hwloc_topology_set_icache_types_filter(hwloc_topology_t topology, enum hwloc_type_filter_e filter)
Set the filtering for all CPU instruction cache object types.
int hwloc_topology_is_thissystem(hwloc_topology_t restrict topology)
Does the topology context come from this system?
-
hwloc_type_filter_e
Type filtering flags.
Definition: hwloc.h:2395
+
hwloc_type_filter_e
Type filtering flags.
Definition: hwloc.h:2410
int hwloc_topology_set_all_types_filter(hwloc_topology_t topology, enum hwloc_type_filter_e filter)
Set the filtering for all object types.
int hwloc_topology_set_flags(hwloc_topology_t topology, unsigned long flags)
Set OR'ed flags to non-yet-loaded topology.
const struct hwloc_topology_support * hwloc_topology_get_support(hwloc_topology_t restrict topology)
Retrieve the topology support.
void * hwloc_topology_get_userdata(hwloc_topology_t topology)
Retrieve the topology-specific userdata pointer.
int hwloc_topology_set_type_filter(hwloc_topology_t topology, hwloc_obj_type_t type, enum hwloc_type_filter_e filter)
Set the filtering for the given object type.
-
hwloc_topology_flags_e
Flags to be set onto a topology context before load.
Definition: hwloc.h:2039
-
@ HWLOC_TYPE_FILTER_KEEP_NONE
Ignore all objects of this type.
Definition: hwloc.h:2409
-
@ HWLOC_TYPE_FILTER_KEEP_IMPORTANT
Only keep likely-important objects of the given type.
Definition: hwloc.h:2438
-
@ HWLOC_TYPE_FILTER_KEEP_STRUCTURE
Only ignore objects if their entire level does not bring any structure.
Definition: hwloc.h:2423
-
@ HWLOC_TYPE_FILTER_KEEP_ALL
Keep all objects of this type.
Definition: hwloc.h:2401
-
@ HWLOC_TOPOLOGY_FLAG_INCLUDE_DISALLOWED
Detect the whole system, ignore reservations, include disallowed objects.
Definition: hwloc.h:2061
-
@ HWLOC_TOPOLOGY_FLAG_THISSYSTEM_ALLOWED_RESOURCES
Get the set of allowed resources from the local operating system even if the topology was loaded from...
Definition: hwloc.h:2102
-
@ HWLOC_TOPOLOGY_FLAG_NO_CPUKINDS
Ignore CPU Kinds.
Definition: hwloc.h:2208
-
@ HWLOC_TOPOLOGY_FLAG_RESTRICT_TO_MEMBINDING
Do not consider resources outside of the process memory binding.
Definition: hwloc.h:2173
-
@ HWLOC_TOPOLOGY_FLAG_NO_DISTANCES
Ignore distances.
Definition: hwloc.h:2195
-
@ HWLOC_TOPOLOGY_FLAG_IS_THISSYSTEM
Assume that the selected backend provides the topology for the system on which we are running.
Definition: hwloc.h:2081
-
@ HWLOC_TOPOLOGY_FLAG_RESTRICT_TO_CPUBINDING
Do not consider resources outside of the process CPU binding.
Definition: hwloc.h:2151
-
@ HWLOC_TOPOLOGY_FLAG_NO_MEMATTRS
Ignore memory attributes and tiers.
Definition: hwloc.h:2202
-
@ HWLOC_TOPOLOGY_FLAG_IMPORT_SUPPORT
Import support from the imported topology.
Definition: hwloc.h:2126
-
@ HWLOC_TOPOLOGY_FLAG_DONT_CHANGE_BINDING
Do not ever modify the process or thread binding during discovery.
Definition: hwloc.h:2188
+
hwloc_topology_flags_e
Flags to be set onto a topology context before load.
Definition: hwloc.h:2054
+
@ HWLOC_TYPE_FILTER_KEEP_NONE
Ignore all objects of this type.
Definition: hwloc.h:2424
+
@ HWLOC_TYPE_FILTER_KEEP_IMPORTANT
Only keep likely-important objects of the given type.
Definition: hwloc.h:2453
+
@ HWLOC_TYPE_FILTER_KEEP_STRUCTURE
Only ignore objects if their entire level does not bring any structure.
Definition: hwloc.h:2438
+
@ HWLOC_TYPE_FILTER_KEEP_ALL
Keep all objects of this type.
Definition: hwloc.h:2416
+
@ HWLOC_TOPOLOGY_FLAG_INCLUDE_DISALLOWED
Detect the whole system, ignore reservations, include disallowed objects.
Definition: hwloc.h:2076
+
@ HWLOC_TOPOLOGY_FLAG_THISSYSTEM_ALLOWED_RESOURCES
Get the set of allowed resources from the local operating system even if the topology was loaded from...
Definition: hwloc.h:2117
+
@ HWLOC_TOPOLOGY_FLAG_NO_CPUKINDS
Ignore CPU Kinds.
Definition: hwloc.h:2223
+
@ HWLOC_TOPOLOGY_FLAG_RESTRICT_TO_MEMBINDING
Do not consider resources outside of the process memory binding.
Definition: hwloc.h:2188
+
@ HWLOC_TOPOLOGY_FLAG_NO_DISTANCES
Ignore distances.
Definition: hwloc.h:2210
+
@ HWLOC_TOPOLOGY_FLAG_IS_THISSYSTEM
Assume that the selected backend provides the topology for the system on which we are running.
Definition: hwloc.h:2096
+
@ HWLOC_TOPOLOGY_FLAG_RESTRICT_TO_CPUBINDING
Do not consider resources outside of the process CPU binding.
Definition: hwloc.h:2166
+
@ HWLOC_TOPOLOGY_FLAG_NO_MEMATTRS
Ignore memory attributes and tiers.
Definition: hwloc.h:2217
+
@ HWLOC_TOPOLOGY_FLAG_IMPORT_SUPPORT
Import support from the imported topology.
Definition: hwloc.h:2141
+
@ HWLOC_TOPOLOGY_FLAG_DONT_CHANGE_BINDING
Do not ever modify the process or thread binding during discovery.
Definition: hwloc.h:2203
hwloc_obj_t hwloc_topology_insert_group_object(hwloc_topology_t topology, hwloc_obj_t group)
Add more structure to the topology by adding an intermediate Group.
-
hwloc_allow_flags_e
Flags to be given to hwloc_topology_allow().
Definition: hwloc.h:2586
+
hwloc_allow_flags_e
Flags to be given to hwloc_topology_allow().
Definition: hwloc.h:2601
hwloc_obj_t hwloc_topology_alloc_group_object(hwloc_topology_t topology)
Allocate a Group object to insert later with hwloc_topology_insert_group_object().
int hwloc_topology_refresh(hwloc_topology_t topology)
Refresh internal structures after topology modification.
int hwloc_topology_restrict(hwloc_topology_t restrict topology, hwloc_const_bitmap_t set, unsigned long flags)
Restrict the topology to the given CPU set or nodeset.
-
hwloc_restrict_flags_e
Flags to be given to hwloc_topology_restrict().
Definition: hwloc.h:2514
+
hwloc_restrict_flags_e
Flags to be given to hwloc_topology_restrict().
Definition: hwloc.h:2529
int hwloc_topology_free_group_object(hwloc_topology_t topology, hwloc_obj_t group)
Free a group object allocated with hwloc_topology_alloc_group_object().
int hwloc_obj_add_other_obj_sets(hwloc_obj_t dst, hwloc_obj_t src)
Setup object cpusets/nodesets by OR'ing another object's sets.
hwloc_obj_t hwloc_topology_insert_misc_object(hwloc_topology_t topology, hwloc_obj_t parent, const char *name)
Add a MISC object as a leaf of the topology.
int hwloc_topology_allow(hwloc_topology_t restrict topology, hwloc_const_cpuset_t cpuset, hwloc_const_nodeset_t nodeset, unsigned long flags)
Change the sets of allowed PUs and NUMA nodes in the topology.
-
@ HWLOC_ALLOW_FLAG_CUSTOM
Allow a custom set of objects, given to hwloc_topology_allow() as cpuset and/or nodeset parameters.
Definition: hwloc.h:2604
-
@ HWLOC_ALLOW_FLAG_LOCAL_RESTRICTIONS
Only allow objects that are available to the current process.
Definition: hwloc.h:2600
-
@ HWLOC_ALLOW_FLAG_ALL
Mark all objects as allowed in the topology.
Definition: hwloc.h:2591
-
@ HWLOC_RESTRICT_FLAG_ADAPT_MISC
Move Misc objects to ancestors if their parents are removed during restriction. If this flag is not s...
Definition: hwloc.h:2539
-
@ HWLOC_RESTRICT_FLAG_REMOVE_CPULESS
Remove all objects that became CPU-less. By default, only objects that contain no PU and no memory ar...
Definition: hwloc.h:2520
-
@ HWLOC_RESTRICT_FLAG_ADAPT_IO
Move I/O objects to ancestors if their parents are removed during restriction. If this flag is not se...
Definition: hwloc.h:2545
-
@ HWLOC_RESTRICT_FLAG_BYNODESET
Restrict by nodeset instead of CPU set. Only keep objects whose nodeset is included or partially incl...
Definition: hwloc.h:2526
-
@ HWLOC_RESTRICT_FLAG_REMOVE_MEMLESS
Remove all objects that became Memory-less. By default, only objects that contain no PU and no memory...
Definition: hwloc.h:2533
+
@ HWLOC_ALLOW_FLAG_CUSTOM
Allow a custom set of objects, given to hwloc_topology_allow() as cpuset and/or nodeset parameters.
Definition: hwloc.h:2619
+
@ HWLOC_ALLOW_FLAG_LOCAL_RESTRICTIONS
Only allow objects that are available to the current process.
Definition: hwloc.h:2615
+
@ HWLOC_ALLOW_FLAG_ALL
Mark all objects as allowed in the topology.
Definition: hwloc.h:2606
+
@ HWLOC_RESTRICT_FLAG_ADAPT_MISC
Move Misc objects to ancestors if their parents are removed during restriction. If this flag is not s...
Definition: hwloc.h:2554
+
@ HWLOC_RESTRICT_FLAG_REMOVE_CPULESS
Remove all objects that became CPU-less. By default, only objects that contain no PU and no memory ar...
Definition: hwloc.h:2535
+
@ HWLOC_RESTRICT_FLAG_ADAPT_IO
Move I/O objects to ancestors if their parents are removed during restriction. If this flag is not se...
Definition: hwloc.h:2560
+
@ HWLOC_RESTRICT_FLAG_BYNODESET
Restrict by nodeset instead of CPU set. Only keep objects whose nodeset is included or partially incl...
Definition: hwloc.h:2541
+
@ HWLOC_RESTRICT_FLAG_REMOVE_MEMLESS
Remove all objects that became Memory-less. By default, only objects that contain no PU and no memory...
Definition: hwloc.h:2548
struct hwloc_bitmap_s * hwloc_bitmap_t
Set of bits represented as an opaque pointer to an internal bitmap.
Definition: bitmap.h:69
const struct hwloc_bitmap_s * hwloc_const_bitmap_t
a non-modifiable hwloc_bitmap_t
Definition: bitmap.h:71
Structure of a topology object.
Definition: hwloc.h:431
@@ -857,74 +863,74 @@
unsigned depth
Depth of group object. It may change if intermediate Group objects are added.
Definition: hwloc.h:661
unsigned char dont_merge
Flag preventing groups from being automatically merged with identical parent or children.
Definition: hwloc.h:665
PCI Device specific Object Attributes.
Definition: hwloc.h:668
-
unsigned char revision
Definition: hwloc.h:677
-
unsigned short device_id
Definition: hwloc.h:676
-
unsigned char dev
Definition: hwloc.h:674
-
unsigned short subvendor_id
Definition: hwloc.h:676
-
float linkspeed
Definition: hwloc.h:678
-
unsigned char func
Definition: hwloc.h:674
-
unsigned short domain
Definition: hwloc.h:670
-
unsigned short vendor_id
Definition: hwloc.h:676
-
unsigned char bus
Definition: hwloc.h:674
-
unsigned short subdevice_id
Definition: hwloc.h:676
-
unsigned short class_id
Definition: hwloc.h:675
-
Bridge specific Object Attributes.
Definition: hwloc.h:681
-
hwloc_obj_bridge_type_t upstream_type
Definition: hwloc.h:685
-
unsigned short domain
Definition: hwloc.h:689
-
unsigned depth
Definition: hwloc.h:697
+
unsigned char revision
Revision number.
Definition: hwloc.h:684
+
unsigned short device_id
Device ID (yyyy in [xxxx:yyyy]).
Definition: hwloc.h:681
+
unsigned char dev
Device number (zz in the PCI BDF notation xxxx:yy:zz.t).
Definition: hwloc.h:677
+
unsigned short subvendor_id
Sub-Vendor ID.
Definition: hwloc.h:682
+
float linkspeed
Link speed in GB/s. This datarate is the currently configured speed of the entire PCI link (sum of th...
Definition: hwloc.h:685
+
unsigned char func
Function number (t in the PCI BDF notation xxxx:yy:zz.t).
Definition: hwloc.h:678
+
unsigned short domain
Domain number (xxxx in the PCI BDF notation xxxx:yy:zz.t). Only 16bits PCI domains are supported by d...
Definition: hwloc.h:670
+
unsigned short vendor_id
Vendor ID (xxxx in [xxxx:yyyy]).
Definition: hwloc.h:680
+
unsigned char bus
Bus number (yy in the PCI BDF notation xxxx:yy:zz.t).
Definition: hwloc.h:676
+
unsigned short subdevice_id
Sub-Device ID.
Definition: hwloc.h:683
+
unsigned short class_id
The class number (first two bytes, without the prog_if).
Definition: hwloc.h:679
+
Bridge specific Object Attributes.
Definition: hwloc.h:693
+
hwloc_obj_bridge_type_t upstream_type
Upstream Bridge type.
Definition: hwloc.h:697
+
unsigned short domain
Domain number the downstream PCI buses. Only 16bits PCI domains are supported by default.
Definition: hwloc.h:701
+
unsigned depth
Definition: hwloc.h:712
union hwloc_obj_attr_u::hwloc_bridge_attr_s::@2 upstream
-
struct hwloc_pcidev_attr_s pci
Definition: hwloc.h:683
+
struct hwloc_pcidev_attr_s pci
PCI attribute of the upstream part as a PCI device.
Definition: hwloc.h:695
union hwloc_obj_attr_u::hwloc_bridge_attr_s::@3 downstream
-
hwloc_obj_bridge_type_t downstream_type
Definition: hwloc.h:696
-
unsigned char secondary_bus
Definition: hwloc.h:693
-
unsigned char subordinate_bus
Definition: hwloc.h:693
-
OS Device specific Object Attributes.
Definition: hwloc.h:700
-
hwloc_obj_osdev_type_t type
Definition: hwloc.h:701
-
Object info attribute (name and value strings)
Definition: hwloc.h:709
-
char * name
Info name.
Definition: hwloc.h:710
-
char * value
Info value.
Definition: hwloc.h:711
-
Flags describing actual discovery support for this topology.
Definition: hwloc.h:2252
-
unsigned char numa
Detecting the number of NUMA nodes is supported.
Definition: hwloc.h:2256
-
unsigned char disallowed_numa
Detecting and identifying NUMA nodes that are not available to the current process is supported.
Definition: hwloc.h:2262
-
unsigned char cpukind_efficiency
Detecting the efficiency of CPU kinds is supported, see Kinds of CPU cores.
Definition: hwloc.h:2264
-
unsigned char pu
Detecting the number of PU objects is supported.
Definition: hwloc.h:2254
-
unsigned char numa_memory
Detecting the amount of memory in NUMA nodes is supported.
Definition: hwloc.h:2258
-
unsigned char disallowed_pu
Detecting and identifying PU objects that are not available to the current process is supported.
Definition: hwloc.h:2260
-
Flags describing actual PU binding support for this topology.
Definition: hwloc.h:2272
-
unsigned char get_proc_last_cpu_location
Definition: hwloc.h:2292
-
unsigned char set_thread_cpubind
Definition: hwloc.h:2286
-
unsigned char set_thisthread_cpubind
Definition: hwloc.h:2282
-
unsigned char get_thisthread_last_cpu_location
Definition: hwloc.h:2294
-
unsigned char get_thisproc_cpubind
Definition: hwloc.h:2276
-
unsigned char get_thisthread_cpubind
Definition: hwloc.h:2284
-
unsigned char get_thread_cpubind
Definition: hwloc.h:2288
-
unsigned char set_thisproc_cpubind
Definition: hwloc.h:2274
-
unsigned char set_proc_cpubind
Definition: hwloc.h:2278
-
unsigned char get_proc_cpubind
Definition: hwloc.h:2280
-
unsigned char get_thisproc_last_cpu_location
Definition: hwloc.h:2290
-
Flags describing actual memory binding support for this topology.
Definition: hwloc.h:2302
-
unsigned char set_thisthread_membind
Definition: hwloc.h:2312
-
unsigned char get_area_membind
Definition: hwloc.h:2318
-
unsigned char firsttouch_membind
Definition: hwloc.h:2322
-
unsigned char get_area_memlocation
Definition: hwloc.h:2332
-
unsigned char set_thisproc_membind
Definition: hwloc.h:2304
-
unsigned char interleave_membind
Definition: hwloc.h:2326
-
unsigned char get_thisproc_membind
Definition: hwloc.h:2306
-
unsigned char set_area_membind
Definition: hwloc.h:2316
-
unsigned char get_thisthread_membind
Definition: hwloc.h:2314
-
unsigned char set_proc_membind
Definition: hwloc.h:2308
-
unsigned char get_proc_membind
Definition: hwloc.h:2310
-
unsigned char migrate_membind
Definition: hwloc.h:2330
-
unsigned char nexttouch_membind
Definition: hwloc.h:2328
-
unsigned char alloc_membind
Definition: hwloc.h:2320
-
unsigned char bind_membind
Definition: hwloc.h:2324
-
Flags describing miscellaneous features.
Definition: hwloc.h:2337
-
unsigned char imported_support
Definition: hwloc.h:2339
-
Set of flags describing actual support for this topology.
Definition: hwloc.h:2348
-
struct hwloc_topology_misc_support * misc
Definition: hwloc.h:2352
-
struct hwloc_topology_membind_support * membind
Definition: hwloc.h:2351
-
struct hwloc_topology_cpubind_support * cpubind
Definition: hwloc.h:2350
-
struct hwloc_topology_discovery_support * discovery
Definition: hwloc.h:2349
+
hwloc_obj_bridge_type_t downstream_type
Downstream Bridge type.
Definition: hwloc.h:711
+
unsigned char secondary_bus
First PCI bus number below the bridge.
Definition: hwloc.h:707
+
unsigned char subordinate_bus
Highest PCI bus number below the bridge.
Definition: hwloc.h:708
+
OS Device specific Object Attributes.
Definition: hwloc.h:715
+
hwloc_obj_osdev_type_t type
Definition: hwloc.h:716
+
Object info attribute (name and value strings)
Definition: hwloc.h:724
+
char * name
Info name.
Definition: hwloc.h:725
+
char * value
Info value.
Definition: hwloc.h:726
+
Flags describing actual discovery support for this topology.
Definition: hwloc.h:2267
+
unsigned char numa
Detecting the number of NUMA nodes is supported.
Definition: hwloc.h:2271
+
unsigned char disallowed_numa
Detecting and identifying NUMA nodes that are not available to the current process is supported.
Definition: hwloc.h:2277
+
unsigned char cpukind_efficiency
Detecting the efficiency of CPU kinds is supported, see Kinds of CPU cores.
Definition: hwloc.h:2279
+
unsigned char pu
Detecting the number of PU objects is supported.
Definition: hwloc.h:2269
+
unsigned char numa_memory
Detecting the amount of memory in NUMA nodes is supported.
Definition: hwloc.h:2273
+
unsigned char disallowed_pu
Detecting and identifying PU objects that are not available to the current process is supported.
Definition: hwloc.h:2275
+
Flags describing actual PU binding support for this topology.
Definition: hwloc.h:2287
+
unsigned char get_proc_last_cpu_location
Definition: hwloc.h:2307
+
unsigned char set_thread_cpubind
Definition: hwloc.h:2301
+
unsigned char set_thisthread_cpubind
Definition: hwloc.h:2297
+
unsigned char get_thisthread_last_cpu_location
Definition: hwloc.h:2309
+
unsigned char get_thisproc_cpubind
Definition: hwloc.h:2291
+
unsigned char get_thisthread_cpubind
Definition: hwloc.h:2299
+
unsigned char get_thread_cpubind
Definition: hwloc.h:2303
+
unsigned char set_thisproc_cpubind
Definition: hwloc.h:2289
+
unsigned char set_proc_cpubind
Definition: hwloc.h:2293
+
unsigned char get_proc_cpubind
Definition: hwloc.h:2295
+
unsigned char get_thisproc_last_cpu_location
Definition: hwloc.h:2305
+
Flags describing actual memory binding support for this topology.
Definition: hwloc.h:2317
+
unsigned char set_thisthread_membind
Definition: hwloc.h:2327
+
unsigned char get_area_membind
Definition: hwloc.h:2333
+
unsigned char firsttouch_membind
Definition: hwloc.h:2337
+
unsigned char get_area_memlocation
Definition: hwloc.h:2347
+
unsigned char set_thisproc_membind
Definition: hwloc.h:2319
+
unsigned char interleave_membind
Definition: hwloc.h:2341
+
unsigned char get_thisproc_membind
Definition: hwloc.h:2321
+
unsigned char set_area_membind
Definition: hwloc.h:2331
+
unsigned char get_thisthread_membind
Definition: hwloc.h:2329
+
unsigned char set_proc_membind
Definition: hwloc.h:2323
+
unsigned char get_proc_membind
Definition: hwloc.h:2325
+
unsigned char migrate_membind
Definition: hwloc.h:2345
+
unsigned char nexttouch_membind
Definition: hwloc.h:2343
+
unsigned char alloc_membind
Definition: hwloc.h:2335
+
unsigned char bind_membind
Definition: hwloc.h:2339
+
Flags describing miscellaneous features.
Definition: hwloc.h:2352
+
unsigned char imported_support
Definition: hwloc.h:2354
+
Set of flags describing actual support for this topology.
Definition: hwloc.h:2363
+
struct hwloc_topology_misc_support * misc
Definition: hwloc.h:2367
+
struct hwloc_topology_membind_support * membind
Definition: hwloc.h:2366
+
struct hwloc_topology_cpubind_support * cpubind
Definition: hwloc.h:2365
+
struct hwloc_topology_discovery_support * discovery
Definition: hwloc.h:2364
HWLOC_OBJ_BRIDGE
@ HWLOC_OBJ_BRIDGE
Bridge (filtered out by default). Any bridge (or PCI switch) that connects the host or an I/O bus,...
Definition: hwloc.h:283
HWLOC_OBJ_NUMANODE
@ HWLOC_OBJ_NUMANODE
NUMA node. An object that contains memory that is directly and byte-accessible to the host processors...
Definition: hwloc.h:257
HWLOC_OBJ_PU
@ HWLOC_OBJ_PU
Processing Unit, or (Logical) Processor. An execution unit (may share a core with some other logical ...
Definition: hwloc.h:222
-
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:727
+
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:742
hwloc_get_root_obj
static hwloc_obj_t hwloc_get_root_obj(hwloc_topology_t topology)
Returns the top-object of the topology-tree.
hwloc_get_obj_by_depth
hwloc_obj_t hwloc_get_obj_by_depth(hwloc_topology_t topology, int depth, unsigned idx)
Returns the topology object at logical index idx from depth depth.
hwloc_get_obj_by_type
static hwloc_obj_t hwloc_get_obj_by_type(hwloc_topology_t topology, hwloc_obj_type_t type, unsigned idx)
Returns the topology object at logical index idx with type type.
hwloc_get_next_obj_by_type
static hwloc_obj_t hwloc_get_next_obj_by_type(hwloc_topology_t topology, hwloc_obj_type_t type, hwloc_obj_t prev)
Returns the next object of type type.
hwloc_get_type_depth
int hwloc_get_type_depth(hwloc_topology_t topology, hwloc_obj_type_t type)
Returns the depth of objects of type type.
hwloc_get_next_obj_by_depth
static hwloc_obj_t hwloc_get_next_obj_by_depth(hwloc_topology_t topology, int depth, hwloc_obj_t prev)
Returns the next object at depth depth.
-
HWLOC_TYPE_DEPTH_UNKNOWN
@ HWLOC_TYPE_DEPTH_UNKNOWN
No object of given type exists in the topology.
Definition: hwloc.h:864
-
HWLOC_TYPE_DEPTH_MULTIPLE
@ HWLOC_TYPE_DEPTH_MULTIPLE
Objects of given type exist at different depth in the topology (only for Groups).
Definition: hwloc.h:865
+
HWLOC_TYPE_DEPTH_UNKNOWN
@ HWLOC_TYPE_DEPTH_UNKNOWN
No object of given type exists in the topology.
Definition: hwloc.h:879
+
HWLOC_TYPE_DEPTH_MULTIPLE
@ HWLOC_TYPE_DEPTH_MULTIPLE
Objects of given type exist at different depth in the topology (only for Groups).
Definition: hwloc.h:880
hwloc_obj_type_is_memory
int hwloc_obj_type_is_memory(hwloc_obj_type_t type)
Check whether an object type is Memory.
hwloc_obj_type_is_cache
int hwloc_obj_type_is_cache(hwloc_obj_type_t type)
Check whether an object type is a CPU Cache (Data, Unified or Instruction).
hwloc_obj_type_is_dcache
int hwloc_obj_type_is_dcache(hwloc_obj_type_t type)
Check whether an object type is a CPU Data or Unified Cache.
@@ -779,13 +779,13 @@
hwloc_obj_attr_u::cache
struct hwloc_obj_attr_u::hwloc_cache_attr_s cache
hwloc_obj_attr_u::hwloc_cache_attr_s::depth
unsigned depth
Depth of cache (e.g., L1, L2, ...etc.)
Definition: hwloc.h:653
hwloc_obj_attr_u::hwloc_cache_attr_s::type
hwloc_obj_cache_type_t type
Cache type.
Definition: hwloc.h:657
-
hwloc_obj_attr_u::hwloc_pcidev_attr_s::dev
unsigned char dev
Definition: hwloc.h:674
-
hwloc_obj_attr_u::hwloc_pcidev_attr_s::func
unsigned char func
Definition: hwloc.h:674
-
hwloc_obj_attr_u::hwloc_pcidev_attr_s::domain
unsigned short domain
Definition: hwloc.h:670
-
hwloc_obj_attr_u::hwloc_pcidev_attr_s::bus
unsigned char bus
Definition: hwloc.h:674
-
hwloc_obj_attr_u::hwloc_bridge_attr_s::pci
struct hwloc_pcidev_attr_s pci
Definition: hwloc.h:683
+
hwloc_obj_attr_u::hwloc_pcidev_attr_s::dev
unsigned char dev
Device number (zz in the PCI BDF notation xxxx:yy:zz.t).
Definition: hwloc.h:677
+
hwloc_obj_attr_u::hwloc_pcidev_attr_s::func
unsigned char func
Function number (t in the PCI BDF notation xxxx:yy:zz.t).
Definition: hwloc.h:678
+
hwloc_obj_attr_u::hwloc_pcidev_attr_s::domain
unsigned short domain
Domain number (xxxx in the PCI BDF notation xxxx:yy:zz.t). Only 16bits PCI domains are supported by d...
Definition: hwloc.h:670
+
hwloc_obj_attr_u::hwloc_pcidev_attr_s::bus
unsigned char bus
Bus number (yy in the PCI BDF notation xxxx:yy:zz.t).
Definition: hwloc.h:676
+
hwloc_obj_attr_u::hwloc_bridge_attr_s::pci
struct hwloc_pcidev_attr_s pci
PCI attribute of the upstream part as a PCI device.
Definition: hwloc.h:695
hwloc_obj_attr_u::hwloc_bridge_attr_s::downstream
union hwloc_obj_attr_u::hwloc_bridge_attr_s::@3 downstream
-
hwloc_obj_attr_u::hwloc_bridge_attr_s::downstream_type
hwloc_obj_bridge_type_t downstream_type
Definition: hwloc.h:696
+
hwloc_obj_attr_u::hwloc_bridge_attr_s::downstream_type
hwloc_obj_bridge_type_t downstream_type
Downstream Bridge type.
Definition: hwloc.h:711
284
285
286#endif /* HWLOC_EXPORT_H */
-
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:727
+
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:742
hwloc_topology_export_xml_flags_e
hwloc_topology_export_xml_flags_e
Flags for exporting XML topologies.
Definition: export.h:35
hwloc_export_obj_userdata_base64
int hwloc_export_obj_userdata_base64(void *reserved, hwloc_topology_t topology, hwloc_obj_t obj, const char *name, const void *buffer, size_t length)
Encode and export some object userdata to XML.
hwloc_free_xmlbuffer
void hwloc_free_xmlbuffer(hwloc_topology_t topology, char *xmlbuffer)
Free a buffer allocated by hwloc_topology_export_xmlbuffer()
diff --git a/projects/hwloc/doc/v2.10.0rc1/a00080_source.php b/projects/hwloc/doc/v2.10.0rc2/a00080_source.php similarity index 99% rename from projects/hwloc/doc/v2.10.0rc1/a00080_source.php rename to projects/hwloc/doc/v2.10.0rc2/a00080_source.php index 7e17dd338..550334b61 100644 --- a/projects/hwloc/doc/v2.10.0rc1/a00080_source.php +++ b/projects/hwloc/doc/v2.10.0rc2/a00080_source.php @@ -177,10 +177,10 @@
496
497#endif /* HWLOC_DISTANCES_H */
hwloc_obj_type_t
hwloc_obj_type_t
Type of topology object.
Definition: hwloc.h:197
-
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:727
+
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:742
hwloc_get_type_depth
int hwloc_get_type_depth(hwloc_topology_t topology, hwloc_obj_type_t type)
Returns the depth of objects of type type.
-
HWLOC_TYPE_DEPTH_UNKNOWN
@ HWLOC_TYPE_DEPTH_UNKNOWN
No object of given type exists in the topology.
Definition: hwloc.h:864
-
HWLOC_TYPE_DEPTH_MULTIPLE
@ HWLOC_TYPE_DEPTH_MULTIPLE
Objects of given type exist at different depth in the topology (only for Groups).
Definition: hwloc.h:865
+
HWLOC_TYPE_DEPTH_UNKNOWN
@ HWLOC_TYPE_DEPTH_UNKNOWN
No object of given type exists in the topology.
Definition: hwloc.h:879
+
HWLOC_TYPE_DEPTH_MULTIPLE
@ HWLOC_TYPE_DEPTH_MULTIPLE
Objects of given type exist at different depth in the topology (only for Groups).
Definition: hwloc.h:880
hwloc_distances_release
void hwloc_distances_release(hwloc_topology_t topology, struct hwloc_distances_s *distances)
Release a distance matrix structure previously returned by hwloc_distances_get().
hwloc_distances_transform_e
hwloc_distances_transform_e
Transformations of distances structures.
Definition: distances.h:200
hwloc_distances_get_by_depth
int hwloc_distances_get_by_depth(hwloc_topology_t topology, int depth, unsigned *nr, struct hwloc_distances_s **distances, unsigned long kind, unsigned long flags)
Retrieve distance matrices for object at a specific depth in the topology.
diff --git a/projects/hwloc/doc/v2.10.0rc1/a00083_source.php b/projects/hwloc/doc/v2.10.0rc2/a00083_source.php similarity index 99% rename from projects/hwloc/doc/v2.10.0rc1/a00083_source.php rename to projects/hwloc/doc/v2.10.0rc2/a00083_source.php index c6f551880..93bf3027f 100644 --- a/projects/hwloc/doc/v2.10.0rc1/a00083_source.php +++ b/projects/hwloc/doc/v2.10.0rc2/a00083_source.php @@ -180,7 +180,7 @@
547
548#endif /* HWLOC_MEMATTR_H */
hwloc_cpuset_t
hwloc_bitmap_t hwloc_cpuset_t
A CPU set is a bitmap whose bits are set according to CPU physical OS indexes.
Definition: hwloc.h:161
-
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:727
+
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:742
hwloc_memattr_get_value
int hwloc_memattr_get_value(hwloc_topology_t topology, hwloc_memattr_id_t attribute, hwloc_obj_t target_node, struct hwloc_location *initiator, unsigned long flags, hwloc_uint64_t *value)
Return an attribute value for a specific target NUMA node.
hwloc_location_type_e
hwloc_location_type_e
Type of location.
Definition: memattrs.h:196
hwloc_get_local_numanode_objs
int hwloc_get_local_numanode_objs(hwloc_topology_t topology, struct hwloc_location *location, unsigned *nr, hwloc_obj_t *nodes, unsigned long flags)
Return an array of local NUMA nodes.
diff --git a/projects/hwloc/doc/v2.10.0rc1/a00086_source.php b/projects/hwloc/doc/v2.10.0rc2/a00086_source.php similarity index 99% rename from projects/hwloc/doc/v2.10.0rc1/a00086_source.php rename to projects/hwloc/doc/v2.10.0rc2/a00086_source.php index d5a1dda54..e53ba8a5a 100644 --- a/projects/hwloc/doc/v2.10.0rc1/a00086_source.php +++ b/projects/hwloc/doc/v2.10.0rc2/a00086_source.php @@ -77,14 +77,14 @@
191
192
193#endif /* HWLOC_CPUKINDS_H */
-
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:727
+
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:742
hwloc_bitmap_t
struct hwloc_bitmap_s * hwloc_bitmap_t
Set of bits represented as an opaque pointer to an internal bitmap.
Definition: bitmap.h:69
hwloc_const_bitmap_t
const struct hwloc_bitmap_s * hwloc_const_bitmap_t
a non-modifiable hwloc_bitmap_t
Definition: bitmap.h:71
hwloc_cpukinds_register
int hwloc_cpukinds_register(hwloc_topology_t topology, hwloc_bitmap_t cpuset, int forced_efficiency, unsigned nr_infos, struct hwloc_info_s *infos, unsigned long flags)
Register a kind of CPU in the topology.
hwloc_cpukinds_get_nr
int hwloc_cpukinds_get_nr(hwloc_topology_t topology, unsigned long flags)
Get the number of different kinds of CPU cores in the topology.
hwloc_cpukinds_get_info
int hwloc_cpukinds_get_info(hwloc_topology_t topology, unsigned kind_index, hwloc_bitmap_t cpuset, int *efficiency, unsigned *nr_infos, struct hwloc_info_s **infos, unsigned long flags)
Get the CPU set and infos about a CPU kind in the topology.
hwloc_cpukinds_get_by_cpuset
int hwloc_cpukinds_get_by_cpuset(hwloc_topology_t topology, hwloc_const_bitmap_t cpuset, unsigned long flags)
Get the index of the CPU kind that contains CPUs listed in cpuset.
-
hwloc_info_s
Object info attribute (name and value strings)
Definition: hwloc.h:709
+
hwloc_info_s
Object info attribute (name and value strings)
Definition: hwloc.h:724
95#endif /* HWLOC_LINUX_H */
hwloc_const_cpuset_t
hwloc_const_bitmap_t hwloc_const_cpuset_t
A non-modifiable hwloc_cpuset_t.
Definition: hwloc.h:163
hwloc_cpuset_t
hwloc_bitmap_t hwloc_cpuset_t
A CPU set is a bitmap whose bits are set according to CPU physical OS indexes.
Definition: hwloc.h:161
-
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:727
+
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:742
hwloc_bitmap_t
struct hwloc_bitmap_s * hwloc_bitmap_t
Set of bits represented as an opaque pointer to an internal bitmap.
Definition: bitmap.h:69
hwloc_linux_set_tid_cpubind
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.
hwloc_linux_get_tid_last_cpu_location
int hwloc_linux_get_tid_last_cpu_location(hwloc_topology_t topology, pid_t tid, hwloc_bitmap_t set)
Get the last physical CPU where thread tid ran.
diff --git a/projects/hwloc/doc/v2.10.0rc1/a00092_source.php b/projects/hwloc/doc/v2.10.0rc2/a00092_source.php similarity index 99% rename from projects/hwloc/doc/v2.10.0rc1/a00092_source.php rename to projects/hwloc/doc/v2.10.0rc2/a00092_source.php index 5e5e43bcf..aeadd6844 100644 --- a/projects/hwloc/doc/v2.10.0rc1/a00092_source.php +++ b/projects/hwloc/doc/v2.10.0rc2/a00092_source.php @@ -202,7 +202,7 @@
hwloc_nodeset_t
hwloc_bitmap_t hwloc_nodeset_t
A node set is a bitmap whose bits are set according to NUMA memory node physical OS indexes.
Definition: hwloc.h:178
hwloc_cpuset_t
hwloc_bitmap_t hwloc_cpuset_t
A CPU set is a bitmap whose bits are set according to CPU physical OS indexes.
Definition: hwloc.h:161
HWLOC_OBJ_NUMANODE
@ HWLOC_OBJ_NUMANODE
NUMA node. An object that contains memory that is directly and byte-accessible to the host processors...
Definition: hwloc.h:257
-
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:727
+
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:742
hwloc_get_type_depth
int hwloc_get_type_depth(hwloc_topology_t topology, hwloc_obj_type_t type)
Returns the depth of objects of type type.
hwloc_get_next_obj_by_depth
static hwloc_obj_t hwloc_get_next_obj_by_depth(hwloc_topology_t topology, int depth, hwloc_obj_t prev)
Returns the next object at depth depth.
hwloc_get_next_obj_covering_cpuset_by_depth
static hwloc_obj_t hwloc_get_next_obj_covering_cpuset_by_depth(hwloc_topology_t topology, hwloc_const_cpuset_t set, int depth, hwloc_obj_t prev)
Iterate through same-depth objects covering at least CPU set set.
Definition: helper.h:428
diff --git a/projects/hwloc/doc/v2.10.0rc1/a00095_source.php b/projects/hwloc/doc/v2.10.0rc2/a00095_source.php similarity index 99% rename from projects/hwloc/doc/v2.10.0rc1/a00095_source.php rename to projects/hwloc/doc/v2.10.0rc2/a00095_source.php index 89e2ed7e2..87330dc82 100644 --- a/projects/hwloc/doc/v2.10.0rc1/a00095_source.php +++ b/projects/hwloc/doc/v2.10.0rc2/a00095_source.php @@ -58,7 +58,7 @@
75
76#endif /* HWLOC_WINDOWS_H */
hwloc_cpuset_t
hwloc_bitmap_t hwloc_cpuset_t
A CPU set is a bitmap whose bits are set according to CPU physical OS indexes.
Definition: hwloc.h:161
-
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:727
+
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:742
hwloc_windows_get_processor_group_cpuset
int hwloc_windows_get_processor_group_cpuset(hwloc_topology_t topology, unsigned pg_index, hwloc_cpuset_t cpuset, unsigned long flags)
Get the CPU-set of a Windows processor group.
hwloc_windows_get_nr_processor_groups
int hwloc_windows_get_nr_processor_groups(hwloc_topology_t topology, unsigned long flags)
Get the number of Windows processor groups.
diff --git a/projects/hwloc/doc/v2.10.0rc1/a00098_source.php b/projects/hwloc/doc/v2.10.0rc2/a00098_source.php similarity index 99% rename from projects/hwloc/doc/v2.10.0rc1/a00098_source.php rename to projects/hwloc/doc/v2.10.0rc2/a00098_source.php index 1a1c08bda..0ac81facc 100644 --- a/projects/hwloc/doc/v2.10.0rc1/a00098_source.php +++ b/projects/hwloc/doc/v2.10.0rc2/a00098_source.php @@ -125,7 +125,7 @@
133#endif /* HWLOC_GLIBC_SCHED_H */
hwloc_const_cpuset_t
hwloc_const_bitmap_t hwloc_const_cpuset_t
A non-modifiable hwloc_cpuset_t.
Definition: hwloc.h:163
hwloc_cpuset_t
hwloc_bitmap_t hwloc_cpuset_t
A CPU set is a bitmap whose bits are set according to CPU physical OS indexes.
Definition: hwloc.h:161
-
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:727
+
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:742
hwloc_bitmap_set
int hwloc_bitmap_set(hwloc_bitmap_t bitmap, unsigned id)
Add index id in bitmap bitmap.
hwloc_bitmap_foreach_begin
#define hwloc_bitmap_foreach_begin(id, bitmap)
Loop macro iterating on bitmap bitmap.
Definition: bitmap.h:387
hwloc_bitmap_zero
void hwloc_bitmap_zero(hwloc_bitmap_t bitmap)
Empty the bitmap bitmap.
diff --git a/projects/hwloc/doc/v2.10.0rc1/a00101_source.php b/projects/hwloc/doc/v2.10.0rc2/a00101_source.php similarity index 98% rename from projects/hwloc/doc/v2.10.0rc1/a00101_source.php rename to projects/hwloc/doc/v2.10.0rc2/a00101_source.php index 780970db8..63550d146 100644 --- a/projects/hwloc/doc/v2.10.0rc1/a00101_source.php +++ b/projects/hwloc/doc/v2.10.0rc2/a00101_source.php @@ -208,7 +208,7 @@
hwloc_cpuset_t
hwloc_bitmap_t hwloc_cpuset_t
A CPU set is a bitmap whose bits are set according to CPU physical OS indexes.
Definition: hwloc.h:161
HWLOC_OBJ_OSDEV_COPROC
@ HWLOC_OBJ_OSDEV_COPROC
Operating system co-processor device. For instance "opencl0d0" for a OpenCL device,...
Definition: hwloc.h:385
HWLOC_OBJ_PCI_DEVICE
@ HWLOC_OBJ_PCI_DEVICE
PCI device (filtered out by default).
Definition: hwloc.h:295
-
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:727
+
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:742
hwloc_topology_is_thissystem
int hwloc_topology_is_thissystem(hwloc_topology_t restrict topology)
Does the topology context come from this system?
hwloc_topology_get_complete_cpuset
hwloc_const_cpuset_t hwloc_topology_get_complete_cpuset(hwloc_topology_t topology)
Get complete CPU set.
hwloc_get_next_osdev
static hwloc_obj_t hwloc_get_next_osdev(hwloc_topology_t topology, hwloc_obj_t prev)
Get the next OS device in the system.
Definition: helper.h:1282
@@ -226,11 +226,11 @@
hwloc_obj::parent
struct hwloc_obj * parent
Parent, NULL if root (Machine object)
Definition: hwloc.h:481
hwloc_obj_attr_u::pcidev
struct hwloc_obj_attr_u::hwloc_pcidev_attr_s pcidev
hwloc_obj_attr_u::osdev
struct hwloc_obj_attr_u::hwloc_osdev_attr_s osdev
-
hwloc_obj_attr_u::hwloc_pcidev_attr_s::dev
unsigned char dev
Definition: hwloc.h:674
-
hwloc_obj_attr_u::hwloc_pcidev_attr_s::func
unsigned char func
Definition: hwloc.h:674
-
hwloc_obj_attr_u::hwloc_pcidev_attr_s::domain
unsigned short domain
Definition: hwloc.h:670
-
hwloc_obj_attr_u::hwloc_pcidev_attr_s::bus
unsigned char bus
Definition: hwloc.h:674
-
hwloc_obj_attr_u::hwloc_osdev_attr_s::type
hwloc_obj_osdev_type_t type
Definition: hwloc.h:701
+
hwloc_obj_attr_u::hwloc_pcidev_attr_s::dev
unsigned char dev
Device number (zz in the PCI BDF notation xxxx:yy:zz.t).
Definition: hwloc.h:677
+
hwloc_obj_attr_u::hwloc_pcidev_attr_s::func
unsigned char func
Function number (t in the PCI BDF notation xxxx:yy:zz.t).
Definition: hwloc.h:678
+
hwloc_obj_attr_u::hwloc_pcidev_attr_s::domain
unsigned short domain
Domain number (xxxx in the PCI BDF notation xxxx:yy:zz.t). Only 16bits PCI domains are supported by d...
Definition: hwloc.h:670
+
hwloc_obj_attr_u::hwloc_pcidev_attr_s::bus
unsigned char bus
Bus number (yy in the PCI BDF notation xxxx:yy:zz.t).
Definition: hwloc.h:676
+
hwloc_obj_attr_u::hwloc_osdev_attr_s::type
hwloc_obj_osdev_type_t type
Definition: hwloc.h:716
hwloc_cl_device_topology_amd
Definition: opencl.h:46
hwloc_cl_device_topology_amd::device
cl_char device
Definition: opencl.h:48
hwloc_cl_device_topology_amd::bus
cl_char bus
Definition: opencl.h:48
diff --git a/projects/hwloc/doc/v2.10.0rc1/a00104_source.php b/projects/hwloc/doc/v2.10.0rc2/a00104_source.php similarity index 97% rename from projects/hwloc/doc/v2.10.0rc1/a00104_source.php rename to projects/hwloc/doc/v2.10.0rc2/a00104_source.php index 982919a54..bcb23b45e 100644 --- a/projects/hwloc/doc/v2.10.0rc1/a00104_source.php +++ b/projects/hwloc/doc/v2.10.0rc2/a00104_source.php @@ -175,7 +175,7 @@
hwloc_cpuset_t
hwloc_bitmap_t hwloc_cpuset_t
A CPU set is a bitmap whose bits are set according to CPU physical OS indexes.
Definition: hwloc.h:161
HWLOC_OBJ_OSDEV_COPROC
@ HWLOC_OBJ_OSDEV_COPROC
Operating system co-processor device. For instance "opencl0d0" for a OpenCL device,...
Definition: hwloc.h:385
HWLOC_OBJ_PCI_DEVICE
@ HWLOC_OBJ_PCI_DEVICE
PCI device (filtered out by default).
Definition: hwloc.h:295
-
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:727
+
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:742
hwloc_topology_is_thissystem
int hwloc_topology_is_thissystem(hwloc_topology_t restrict topology)
Does the topology context come from this system?
hwloc_topology_get_complete_cpuset
hwloc_const_cpuset_t hwloc_topology_get_complete_cpuset(hwloc_topology_t topology)
Get complete CPU set.
hwloc_get_next_osdev
static hwloc_obj_t hwloc_get_next_osdev(hwloc_topology_t topology, hwloc_obj_t prev)
Get the next OS device in the system.
Definition: helper.h:1282
@@ -195,11 +195,11 @@
hwloc_obj::parent
struct hwloc_obj * parent
Parent, NULL if root (Machine object)
Definition: hwloc.h:481
hwloc_obj_attr_u::pcidev
struct hwloc_obj_attr_u::hwloc_pcidev_attr_s pcidev
hwloc_obj_attr_u::osdev
struct hwloc_obj_attr_u::hwloc_osdev_attr_s osdev
-
hwloc_obj_attr_u::hwloc_pcidev_attr_s::dev
unsigned char dev
Definition: hwloc.h:674
-
hwloc_obj_attr_u::hwloc_pcidev_attr_s::func
unsigned char func
Definition: hwloc.h:674
-
hwloc_obj_attr_u::hwloc_pcidev_attr_s::domain
unsigned short domain
Definition: hwloc.h:670
-
hwloc_obj_attr_u::hwloc_pcidev_attr_s::bus
unsigned char bus
Definition: hwloc.h:674
-
hwloc_obj_attr_u::hwloc_osdev_attr_s::type
hwloc_obj_osdev_type_t type
Definition: hwloc.h:701
+
hwloc_obj_attr_u::hwloc_pcidev_attr_s::dev
unsigned char dev
Device number (zz in the PCI BDF notation xxxx:yy:zz.t).
Definition: hwloc.h:677
+
hwloc_obj_attr_u::hwloc_pcidev_attr_s::func
unsigned char func
Function number (t in the PCI BDF notation xxxx:yy:zz.t).
Definition: hwloc.h:678
+
hwloc_obj_attr_u::hwloc_pcidev_attr_s::domain
unsigned short domain
Domain number (xxxx in the PCI BDF notation xxxx:yy:zz.t). Only 16bits PCI domains are supported by d...
Definition: hwloc.h:670
+
hwloc_obj_attr_u::hwloc_pcidev_attr_s::bus
unsigned char bus
Bus number (yy in the PCI BDF notation xxxx:yy:zz.t).
Definition: hwloc.h:676
+
hwloc_obj_attr_u::hwloc_osdev_attr_s::type
hwloc_obj_osdev_type_t type
Definition: hwloc.h:716
183#endif /* HWLOC_CUDART_H */
hwloc_cpuset_t
hwloc_bitmap_t hwloc_cpuset_t
A CPU set is a bitmap whose bits are set according to CPU physical OS indexes.
Definition: hwloc.h:161
HWLOC_OBJ_OSDEV_COPROC
@ HWLOC_OBJ_OSDEV_COPROC
Operating system co-processor device. For instance "opencl0d0" for a OpenCL device,...
Definition: hwloc.h:385
-
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:727
+
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:742
hwloc_topology_is_thissystem
int hwloc_topology_is_thissystem(hwloc_topology_t restrict topology)
Does the topology context come from this system?
hwloc_topology_get_complete_cpuset
hwloc_const_cpuset_t hwloc_topology_get_complete_cpuset(hwloc_topology_t topology)
Get complete CPU set.
hwloc_get_next_osdev
static hwloc_obj_t hwloc_get_next_osdev(hwloc_topology_t topology, hwloc_obj_t prev)
Get the next OS device in the system.
Definition: helper.h:1282
@@ -160,7 +160,7 @@
hwloc_obj::name
char * name
Object-specific name if any. Mostly used for identifying OS devices and Misc objects where a name str...
Definition: hwloc.h:443
hwloc_obj::attr
union hwloc_obj_attr_u * attr
Object type-specific Attributes, may be NULL if no attribute value was found.
Definition: hwloc.h:450
hwloc_obj_attr_u::osdev
struct hwloc_obj_attr_u::hwloc_osdev_attr_s osdev
-
hwloc_obj_attr_u::hwloc_osdev_attr_s::type
hwloc_obj_osdev_type_t type
Definition: hwloc.h:701
+
hwloc_obj_attr_u::hwloc_osdev_attr_s::type
hwloc_obj_osdev_type_t type
Definition: hwloc.h:716
hwloc_cpuset_t
hwloc_bitmap_t hwloc_cpuset_t
A CPU set is a bitmap whose bits are set according to CPU physical OS indexes.
Definition: hwloc.h:161
HWLOC_OBJ_OSDEV_GPU
@ HWLOC_OBJ_OSDEV_GPU
Operating system GPU device. For instance ":0.0" for a GL display, "card0" for a Linux DRM device.
Definition: hwloc.h:374
HWLOC_OBJ_PCI_DEVICE
@ HWLOC_OBJ_PCI_DEVICE
PCI device (filtered out by default).
Definition: hwloc.h:295
-
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:727
+
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:742
hwloc_obj_get_info_by_name
static const char * hwloc_obj_get_info_by_name(hwloc_obj_t obj, const char *name)
Search the given name in object infos and return the corresponding value.
hwloc_topology_is_thissystem
int hwloc_topology_is_thissystem(hwloc_topology_t restrict topology)
Does the topology context come from this system?
hwloc_topology_get_complete_cpuset
hwloc_const_cpuset_t hwloc_topology_get_complete_cpuset(hwloc_topology_t topology)
Get complete CPU set.
@@ -173,11 +173,11 @@
hwloc_obj::parent
struct hwloc_obj * parent
Parent, NULL if root (Machine object)
Definition: hwloc.h:481
hwloc_obj_attr_u::pcidev
struct hwloc_obj_attr_u::hwloc_pcidev_attr_s pcidev
hwloc_obj_attr_u::osdev
struct hwloc_obj_attr_u::hwloc_osdev_attr_s osdev
-
hwloc_obj_attr_u::hwloc_pcidev_attr_s::dev
unsigned char dev
Definition: hwloc.h:674
-
hwloc_obj_attr_u::hwloc_pcidev_attr_s::func
unsigned char func
Definition: hwloc.h:674
-
hwloc_obj_attr_u::hwloc_pcidev_attr_s::domain
unsigned short domain
Definition: hwloc.h:670
-
hwloc_obj_attr_u::hwloc_pcidev_attr_s::bus
unsigned char bus
Definition: hwloc.h:674
-
hwloc_obj_attr_u::hwloc_osdev_attr_s::type
hwloc_obj_osdev_type_t type
Definition: hwloc.h:701
+
hwloc_obj_attr_u::hwloc_pcidev_attr_s::dev
unsigned char dev
Device number (zz in the PCI BDF notation xxxx:yy:zz.t).
Definition: hwloc.h:677
+
hwloc_obj_attr_u::hwloc_pcidev_attr_s::func
unsigned char func
Function number (t in the PCI BDF notation xxxx:yy:zz.t).
Definition: hwloc.h:678
+
hwloc_obj_attr_u::hwloc_pcidev_attr_s::domain
unsigned short domain
Domain number (xxxx in the PCI BDF notation xxxx:yy:zz.t). Only 16bits PCI domains are supported by d...
Definition: hwloc.h:670
+
hwloc_obj_attr_u::hwloc_pcidev_attr_s::bus
unsigned char bus
Bus number (yy in the PCI BDF notation xxxx:yy:zz.t).
Definition: hwloc.h:676
+
hwloc_obj_attr_u::hwloc_osdev_attr_s::type
hwloc_obj_osdev_type_t type
Definition: hwloc.h:716
hwloc_cpuset_t
hwloc_bitmap_t hwloc_cpuset_t
A CPU set is a bitmap whose bits are set according to CPU physical OS indexes.
Definition: hwloc.h:161
HWLOC_OBJ_OSDEV_GPU
@ HWLOC_OBJ_OSDEV_GPU
Operating system GPU device. For instance ":0.0" for a GL display, "card0" for a Linux DRM device.
Definition: hwloc.h:374
HWLOC_OBJ_PCI_DEVICE
@ HWLOC_OBJ_PCI_DEVICE
PCI device (filtered out by default).
Definition: hwloc.h:295
-
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:727
+
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:742
hwloc_obj_get_info_by_name
static const char * hwloc_obj_get_info_by_name(hwloc_obj_t obj, const char *name)
Search the given name in object infos and return the corresponding value.
hwloc_topology_is_thissystem
int hwloc_topology_is_thissystem(hwloc_topology_t restrict topology)
Does the topology context come from this system?
hwloc_topology_get_complete_cpuset
hwloc_const_cpuset_t hwloc_topology_get_complete_cpuset(hwloc_topology_t topology)
Get complete CPU set.
@@ -189,11 +189,11 @@
hwloc_obj::parent
struct hwloc_obj * parent
Parent, NULL if root (Machine object)
Definition: hwloc.h:481
hwloc_obj_attr_u::pcidev
struct hwloc_obj_attr_u::hwloc_pcidev_attr_s pcidev
hwloc_obj_attr_u::osdev
struct hwloc_obj_attr_u::hwloc_osdev_attr_s osdev
-
hwloc_obj_attr_u::hwloc_pcidev_attr_s::dev
unsigned char dev
Definition: hwloc.h:674
-
hwloc_obj_attr_u::hwloc_pcidev_attr_s::func
unsigned char func
Definition: hwloc.h:674
-
hwloc_obj_attr_u::hwloc_pcidev_attr_s::domain
unsigned short domain
Definition: hwloc.h:670
-
hwloc_obj_attr_u::hwloc_pcidev_attr_s::bus
unsigned char bus
Definition: hwloc.h:674
-
hwloc_obj_attr_u::hwloc_osdev_attr_s::type
hwloc_obj_osdev_type_t type
Definition: hwloc.h:701
+
hwloc_obj_attr_u::hwloc_pcidev_attr_s::dev
unsigned char dev
Device number (zz in the PCI BDF notation xxxx:yy:zz.t).
Definition: hwloc.h:677
+
hwloc_obj_attr_u::hwloc_pcidev_attr_s::func
unsigned char func
Function number (t in the PCI BDF notation xxxx:yy:zz.t).
Definition: hwloc.h:678
+
hwloc_obj_attr_u::hwloc_pcidev_attr_s::domain
unsigned short domain
Domain number (xxxx in the PCI BDF notation xxxx:yy:zz.t). Only 16bits PCI domains are supported by d...
Definition: hwloc.h:670
+
hwloc_obj_attr_u::hwloc_pcidev_attr_s::bus
unsigned char bus
Bus number (yy in the PCI BDF notation xxxx:yy:zz.t).
Definition: hwloc.h:676
+
hwloc_obj_attr_u::hwloc_osdev_attr_s::type
hwloc_obj_osdev_type_t type
Definition: hwloc.h:716
161#endif /* HWLOC_LEVELZERO_H */
hwloc_cpuset_t
hwloc_bitmap_t hwloc_cpuset_t
A CPU set is a bitmap whose bits are set according to CPU physical OS indexes.
Definition: hwloc.h:161
HWLOC_OBJ_PCI_DEVICE
@ HWLOC_OBJ_PCI_DEVICE
PCI device (filtered out by default).
Definition: hwloc.h:295
-
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:727
+
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:742
hwloc_topology_is_thissystem
int hwloc_topology_is_thissystem(hwloc_topology_t restrict topology)
Does the topology context come from this system?
hwloc_topology_get_complete_cpuset
hwloc_const_cpuset_t hwloc_topology_get_complete_cpuset(hwloc_topology_t topology)
Get complete CPU set.
hwloc_get_next_osdev
static hwloc_obj_t hwloc_get_next_osdev(hwloc_topology_t topology, hwloc_obj_t prev)
Get the next OS device in the system.
Definition: helper.h:1282
@@ -154,10 +154,10 @@
hwloc_obj::attr
union hwloc_obj_attr_u * attr
Object type-specific Attributes, may be NULL if no attribute value was found.
Definition: hwloc.h:450
hwloc_obj::parent
struct hwloc_obj * parent
Parent, NULL if root (Machine object)
Definition: hwloc.h:481
hwloc_obj_attr_u::pcidev
struct hwloc_obj_attr_u::hwloc_pcidev_attr_s pcidev
-
hwloc_obj_attr_u::hwloc_pcidev_attr_s::dev
unsigned char dev
Definition: hwloc.h:674
-
hwloc_obj_attr_u::hwloc_pcidev_attr_s::func
unsigned char func
Definition: hwloc.h:674
-
hwloc_obj_attr_u::hwloc_pcidev_attr_s::domain
unsigned short domain
Definition: hwloc.h:670
-
hwloc_obj_attr_u::hwloc_pcidev_attr_s::bus
unsigned char bus
Definition: hwloc.h:674
+
hwloc_obj_attr_u::hwloc_pcidev_attr_s::dev
unsigned char dev
Device number (zz in the PCI BDF notation xxxx:yy:zz.t).
Definition: hwloc.h:677
+
hwloc_obj_attr_u::hwloc_pcidev_attr_s::func
unsigned char func
Function number (t in the PCI BDF notation xxxx:yy:zz.t).
Definition: hwloc.h:678
+
hwloc_obj_attr_u::hwloc_pcidev_attr_s::domain
unsigned short domain
Domain number (xxxx in the PCI BDF notation xxxx:yy:zz.t). Only 16bits PCI domains are supported by d...
Definition: hwloc.h:670
+
hwloc_obj_attr_u::hwloc_pcidev_attr_s::bus
unsigned char bus
Bus number (yy in the PCI BDF notation xxxx:yy:zz.t).
Definition: hwloc.h:676
136#endif /* HWLOC_GL_H */
137
HWLOC_OBJ_OSDEV_GPU
@ HWLOC_OBJ_OSDEV_GPU
Operating system GPU device. For instance ":0.0" for a GL display, "card0" for a Linux DRM device.
Definition: hwloc.h:374
-
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:727
+
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:742
hwloc_get_next_osdev
static hwloc_obj_t hwloc_get_next_osdev(hwloc_topology_t topology, hwloc_obj_t prev)
Get the next OS device in the system.
Definition: helper.h:1282
hwloc_gl_get_display_osdev_by_name
static hwloc_obj_t hwloc_gl_get_display_osdev_by_name(hwloc_topology_t topology, const char *name)
Get the hwloc OS device object corresponding to the OpenGL display given by name.
Definition: gl.h:85
hwloc_gl_get_display_osdev_by_port_device
static hwloc_obj_t hwloc_gl_get_display_osdev_by_port_device(hwloc_topology_t topology, unsigned port, unsigned device)
Get the hwloc OS device object corresponding to the OpenGL display given by port and device index.
Definition: gl.h:54
@@ -116,7 +116,7 @@
hwloc_obj::name
char * name
Object-specific name if any. Mostly used for identifying OS devices and Misc objects where a name str...
Definition: hwloc.h:443
hwloc_obj::attr
union hwloc_obj_attr_u * attr
Object type-specific Attributes, may be NULL if no attribute value was found.
Definition: hwloc.h:450
hwloc_obj_attr_u::osdev
struct hwloc_obj_attr_u::hwloc_osdev_attr_s osdev
-
hwloc_obj_attr_u::hwloc_osdev_attr_s::type
hwloc_obj_osdev_type_t type
Definition: hwloc.h:701
+
hwloc_obj_attr_u::hwloc_osdev_attr_s::type
hwloc_obj_osdev_type_t type
Definition: hwloc.h:716
155#endif /* HWLOC_OPENFABRICS_VERBS_H */
hwloc_cpuset_t
hwloc_bitmap_t hwloc_cpuset_t
A CPU set is a bitmap whose bits are set according to CPU physical OS indexes.
Definition: hwloc.h:161
HWLOC_OBJ_OSDEV_OPENFABRICS
@ HWLOC_OBJ_OSDEV_OPENFABRICS
Operating system openfabrics device. For instance the "mlx4_0" InfiniBand HCA, "hfi1_0" Omni-Path int...
Definition: hwloc.h:379
-
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:727
+
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:742
hwloc_topology_is_thissystem
int hwloc_topology_is_thissystem(hwloc_topology_t restrict topology)
Does the topology context come from this system?
hwloc_topology_get_complete_cpuset
hwloc_const_cpuset_t hwloc_topology_get_complete_cpuset(hwloc_topology_t topology)
Get complete CPU set.
hwloc_get_next_osdev
static hwloc_obj_t hwloc_get_next_osdev(hwloc_topology_t topology, hwloc_obj_t prev)
Get the next OS device in the system.
Definition: helper.h:1282
@@ -129,7 +129,7 @@
hwloc_obj::name
char * name
Object-specific name if any. Mostly used for identifying OS devices and Misc objects where a name str...
Definition: hwloc.h:443
hwloc_obj::attr
union hwloc_obj_attr_u * attr
Object type-specific Attributes, may be NULL if no attribute value was found.
Definition: hwloc.h:450
hwloc_obj_attr_u::osdev
struct hwloc_obj_attr_u::hwloc_osdev_attr_s osdev
-
hwloc_obj_attr_u::hwloc_osdev_attr_s::type
hwloc_obj_osdev_type_t type
Definition: hwloc.h:701
+
hwloc_obj_attr_u::hwloc_osdev_attr_s::type
hwloc_obj_osdev_type_t type
Definition: hwloc.h:716
297
298
299#endif /* HWLOC_DIFF_H */
-
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:727
+
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:742
hwloc_topology_diff_t
union hwloc_topology_diff_u * hwloc_topology_diff_t
One element of a difference list between two topologies.
hwloc_topology_diff_load_xml
int hwloc_topology_diff_load_xml(const char *xmlpath, hwloc_topology_diff_t *diff, char **refname)
Load a list of topology differences from a XML file.
hwloc_topology_diff_type_e
hwloc_topology_diff_type_e
Type of one element of a difference list.
Definition: diff.h:111
diff --git a/projects/hwloc/doc/v2.10.0rc1/a00128_source.php b/projects/hwloc/doc/v2.10.0rc2/a00128_source.php similarity index 99% rename from projects/hwloc/doc/v2.10.0rc1/a00128_source.php rename to projects/hwloc/doc/v2.10.0rc2/a00128_source.php index 5fa915671..40ed78ffe 100644 --- a/projects/hwloc/doc/v2.10.0rc1/a00128_source.php +++ b/projects/hwloc/doc/v2.10.0rc2/a00128_source.php @@ -67,7 +67,7 @@
140
141
142#endif /* HWLOC_SHMEM_H */
-
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:727
+
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:742
hwloc_shmem_topology_adopt
int hwloc_shmem_topology_adopt(hwloc_topology_t *topologyp, int fd, hwloc_uint64_t fileoffset, void *mmap_address, size_t length, unsigned long flags)
Adopt a shared memory topology stored in a file.
hwloc_shmem_topology_write
int hwloc_shmem_topology_write(hwloc_topology_t topology, int fd, hwloc_uint64_t fileoffset, void *mmap_address, size_t length, unsigned long flags)
Duplicate a topology to a shared memory file.
hwloc_shmem_topology_get_length
int hwloc_shmem_topology_get_length(hwloc_topology_t topology, size_t *lengthp, unsigned long flags)
Get the required shared memory length for storing a topology.
diff --git a/projects/hwloc/doc/v2.10.0rc1/a00131_source.php b/projects/hwloc/doc/v2.10.0rc2/a00131_source.php similarity index 99% rename from projects/hwloc/doc/v2.10.0rc1/a00131_source.php rename to projects/hwloc/doc/v2.10.0rc2/a00131_source.php index 36786a1a2..c9a4b1ad3 100644 --- a/projects/hwloc/doc/v2.10.0rc1/a00131_source.php +++ b/projects/hwloc/doc/v2.10.0rc2/a00131_source.php @@ -290,11 +290,11 @@
HWLOC_OBJ_OSDEV_DMA
@ HWLOC_OBJ_OSDEV_DMA
Operating system dma engine device. For instance the "dma0chan0" DMA channel on Linux.
Definition: hwloc.h:383
HWLOC_OBJ_OS_DEVICE
@ HWLOC_OBJ_OS_DEVICE
Operating system device (filtered out by default).
Definition: hwloc.h:305
HWLOC_OBJ_PCI_DEVICE
@ HWLOC_OBJ_PCI_DEVICE
PCI device (filtered out by default).
Definition: hwloc.h:295
-
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:727
+
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:742
hwloc_topology_get_type_filter
int hwloc_topology_get_type_filter(hwloc_topology_t topology, hwloc_obj_type_t type, enum hwloc_type_filter_e *filter)
Get the current filtering for the given object type.
-
hwloc_type_filter_e
hwloc_type_filter_e
Type filtering flags.
Definition: hwloc.h:2395
-
HWLOC_TYPE_FILTER_KEEP_NONE
@ HWLOC_TYPE_FILTER_KEEP_NONE
Ignore all objects of this type.
Definition: hwloc.h:2409
-
HWLOC_TYPE_FILTER_KEEP_IMPORTANT
@ HWLOC_TYPE_FILTER_KEEP_IMPORTANT
Only keep likely-important objects of the given type.
Definition: hwloc.h:2438
+
hwloc_type_filter_e
hwloc_type_filter_e
Type filtering flags.
Definition: hwloc.h:2410
+
HWLOC_TYPE_FILTER_KEEP_NONE
@ HWLOC_TYPE_FILTER_KEEP_NONE
Ignore all objects of this type.
Definition: hwloc.h:2424
+
HWLOC_TYPE_FILTER_KEEP_IMPORTANT
@ HWLOC_TYPE_FILTER_KEEP_IMPORTANT
Only keep likely-important objects of the given type.
Definition: hwloc.h:2453
hwloc_bitmap_t
struct hwloc_bitmap_s * hwloc_bitmap_t
Set of bits represented as an opaque pointer to an internal bitmap.
Definition: bitmap.h:69
hwloc_backend_enable
int hwloc_backend_enable(struct hwloc_backend *backend)
Enable a previously allocated and setup backend.
hwloc_disc_phase_t
enum hwloc_disc_phase_e hwloc_disc_phase_t
Discovery phase.
@@ -343,8 +343,8 @@
hwloc_obj::attr
union hwloc_obj_attr_u * attr
Object type-specific Attributes, may be NULL if no attribute value was found.
Definition: hwloc.h:450
hwloc_obj_attr_u::pcidev
struct hwloc_obj_attr_u::hwloc_pcidev_attr_s pcidev
hwloc_obj_attr_u::osdev
struct hwloc_obj_attr_u::hwloc_osdev_attr_s osdev
-
hwloc_obj_attr_u::hwloc_pcidev_attr_s::class_id
unsigned short class_id
Definition: hwloc.h:675
-
hwloc_obj_attr_u::hwloc_osdev_attr_s::type
hwloc_obj_osdev_type_t type
Definition: hwloc.h:701
+
hwloc_obj_attr_u::hwloc_pcidev_attr_s::class_id
unsigned short class_id
The class number (first two bytes, without the prog_if).
Definition: hwloc.h:679
+
hwloc_obj_attr_u::hwloc_osdev_attr_s::type
hwloc_obj_osdev_type_t type
Definition: hwloc.h:716
hwloc_disc_component
Discovery component structure.
Definition: plugins.h:41
hwloc_disc_component::name
const char * name
Name. If this component is built as a plugin, this name does not have to match the plugin filename.
Definition: plugins.h:45
hwloc_disc_component::phases
unsigned phases
Discovery phases performed by this component. OR'ed set of hwloc_disc_phase_t.
Definition: plugins.h:50
diff --git a/projects/hwloc/doc/v2.10.0rc1/a00134.php b/projects/hwloc/doc/v2.10.0rc2/a00134.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00134.php rename to projects/hwloc/doc/v2.10.0rc2/a00134.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00135.php b/projects/hwloc/doc/v2.10.0rc2/a00135.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00135.php rename to projects/hwloc/doc/v2.10.0rc2/a00135.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00136.php b/projects/hwloc/doc/v2.10.0rc2/a00136.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00136.php rename to projects/hwloc/doc/v2.10.0rc2/a00136.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00137.php b/projects/hwloc/doc/v2.10.0rc2/a00137.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00137.php rename to projects/hwloc/doc/v2.10.0rc2/a00137.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00138.php b/projects/hwloc/doc/v2.10.0rc2/a00138.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00138.php rename to projects/hwloc/doc/v2.10.0rc2/a00138.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00139.php b/projects/hwloc/doc/v2.10.0rc2/a00139.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00139.php rename to projects/hwloc/doc/v2.10.0rc2/a00139.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00140.php b/projects/hwloc/doc/v2.10.0rc2/a00140.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00140.php rename to projects/hwloc/doc/v2.10.0rc2/a00140.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00141.php b/projects/hwloc/doc/v2.10.0rc2/a00141.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00141.php rename to projects/hwloc/doc/v2.10.0rc2/a00141.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00142.php b/projects/hwloc/doc/v2.10.0rc2/a00142.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00142.php rename to projects/hwloc/doc/v2.10.0rc2/a00142.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00143.php b/projects/hwloc/doc/v2.10.0rc2/a00143.php similarity index 99% rename from projects/hwloc/doc/v2.10.0rc1/a00143.php rename to projects/hwloc/doc/v2.10.0rc2/a00143.php index 14d8403f1..1713b5c0b 100644 --- a/projects/hwloc/doc/v2.10.0rc1/a00143.php +++ b/projects/hwloc/doc/v2.10.0rc2/a00143.php @@ -69,7 +69,7 @@
hwloc_set_cpubind
int hwloc_set_cpubind(hwloc_topology_t topology, hwloc_const_cpuset_t set, int flags)
Bind current process or thread on CPUs given in physical bitmap set.

If the program may be multithreaded, the following one should be preferred to only bind the current thread:

hwloc_set_cpubind(topology, set, HWLOC_CPUBIND_THREAD),
-
@ HWLOC_CPUBIND_THREAD
Bind current thread of current process.
Definition: hwloc.h:1225
+
@ HWLOC_CPUBIND_THREAD
Bind current thread of current process.
Definition: hwloc.h:1240
See also
Some example codes are available under doc/examples/ in the source tree.
Note
To unbind, just call the binding function with either a full cpuset or a cpuset equal to the system cpuset.
diff --git a/projects/hwloc/doc/v2.10.0rc1/a00144.php b/projects/hwloc/doc/v2.10.0rc2/a00144.php similarity index 99% rename from projects/hwloc/doc/v2.10.0rc1/a00144.php rename to projects/hwloc/doc/v2.10.0rc2/a00144.php index c7d1ce7cc..b55f66ae3 100644 --- a/projects/hwloc/doc/v2.10.0rc1/a00144.php +++ b/projects/hwloc/doc/v2.10.0rc2/a00144.php @@ -95,7 +95,7 @@
hwloc_alloc_membind_policy(topology, size, set,
static void * hwloc_alloc_membind_policy(hwloc_topology_t topology, size_t len, hwloc_const_bitmap_t set, hwloc_membind_policy_t policy, int flags)
Allocate some memory on NUMA memory nodes specified by set.
-
@ HWLOC_MEMBIND_BIND
Allocate memory on the specified nodes.
Definition: hwloc.h:1505
+
@ HWLOC_MEMBIND_BIND
Allocate memory on the specified nodes.
Definition: hwloc.h:1520

Each hwloc memory binding function takes a bitmap argument that is a CPU set by default, or a NUMA memory node set if the flag HWLOC_MEMBIND_BYNODESET is specified. See Object Sets (hwloc_cpuset_t and hwloc_nodeset_t) and The bitmap API for a discussion of CPU sets and NUMA memory node sets. It is also possible to convert between CPU set and node set using hwloc_cpuset_to_nodeset() or hwloc_cpuset_from_nodeset().

Memory binding by CPU set cannot work for CPU-less NUMA memory nodes. Binding by nodeset should therefore be preferred whenever possible.

See also
Some example codes are available under doc/examples/ in the source tree.
diff --git a/projects/hwloc/doc/v2.10.0rc1/a00145.php b/projects/hwloc/doc/v2.10.0rc2/a00145.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00145.php rename to projects/hwloc/doc/v2.10.0rc2/a00145.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00146.php b/projects/hwloc/doc/v2.10.0rc2/a00146.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00146.php rename to projects/hwloc/doc/v2.10.0rc2/a00146.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00147.php b/projects/hwloc/doc/v2.10.0rc2/a00147.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00147.php rename to projects/hwloc/doc/v2.10.0rc2/a00147.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00148.php b/projects/hwloc/doc/v2.10.0rc2/a00148.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00148.php rename to projects/hwloc/doc/v2.10.0rc2/a00148.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00149.php b/projects/hwloc/doc/v2.10.0rc2/a00149.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00149.php rename to projects/hwloc/doc/v2.10.0rc2/a00149.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00150.php b/projects/hwloc/doc/v2.10.0rc2/a00150.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00150.php rename to projects/hwloc/doc/v2.10.0rc2/a00150.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00151.php b/projects/hwloc/doc/v2.10.0rc2/a00151.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00151.php rename to projects/hwloc/doc/v2.10.0rc2/a00151.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00152.php b/projects/hwloc/doc/v2.10.0rc2/a00152.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00152.php rename to projects/hwloc/doc/v2.10.0rc2/a00152.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00153.php b/projects/hwloc/doc/v2.10.0rc2/a00153.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00153.php rename to projects/hwloc/doc/v2.10.0rc2/a00153.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00154.php b/projects/hwloc/doc/v2.10.0rc2/a00154.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00154.php rename to projects/hwloc/doc/v2.10.0rc2/a00154.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00155.php b/projects/hwloc/doc/v2.10.0rc2/a00155.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00155.php rename to projects/hwloc/doc/v2.10.0rc2/a00155.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00156.php b/projects/hwloc/doc/v2.10.0rc2/a00156.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00156.php rename to projects/hwloc/doc/v2.10.0rc2/a00156.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00157.php b/projects/hwloc/doc/v2.10.0rc2/a00157.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00157.php rename to projects/hwloc/doc/v2.10.0rc2/a00157.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00158.php b/projects/hwloc/doc/v2.10.0rc2/a00158.php similarity index 99% rename from projects/hwloc/doc/v2.10.0rc1/a00158.php rename to projects/hwloc/doc/v2.10.0rc2/a00158.php index 0ac24dfa9..dca02a622 100644 --- a/projects/hwloc/doc/v2.10.0rc1/a00158.php +++ b/projects/hwloc/doc/v2.10.0rc2/a00158.php @@ -160,7 +160,7 @@
int hwloc_set_cpubind(hwloc_topology_t topology, hwloc_const_cpuset_t set, int flags)
Bind current process or thread on CPUs given in physical bitmap set.
-
@ HWLOC_CPUBIND_THREAD
Bind current thread of current process.
Definition: hwloc.h:1225
+
@ HWLOC_CPUBIND_THREAD
Bind current thread of current process.
Definition: hwloc.h:1240
int hwloc_bitmap_or(hwloc_bitmap_t res, hwloc_const_bitmap_t bitmap1, hwloc_const_bitmap_t bitmap2)
Or bitmaps bitmap1 and bitmap2 and store the result in bitmap res.
void hwloc_bitmap_free(hwloc_bitmap_t bitmap)
Free bitmap bitmap.
struct hwloc_bitmap_s * hwloc_bitmap_t
Set of bits represented as an opaque pointer to an internal bitmap.
Definition: bitmap.h:69
diff --git a/projects/hwloc/doc/v2.10.0rc1/a00159.php b/projects/hwloc/doc/v2.10.0rc2/a00159.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00159.php rename to projects/hwloc/doc/v2.10.0rc2/a00159.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00160.php b/projects/hwloc/doc/v2.10.0rc2/a00160.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00160.php rename to projects/hwloc/doc/v2.10.0rc2/a00160.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00161.php b/projects/hwloc/doc/v2.10.0rc2/a00161.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00161.php rename to projects/hwloc/doc/v2.10.0rc2/a00161.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00162.php b/projects/hwloc/doc/v2.10.0rc2/a00162.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00162.php rename to projects/hwloc/doc/v2.10.0rc2/a00162.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00163.php b/projects/hwloc/doc/v2.10.0rc2/a00163.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00163.php rename to projects/hwloc/doc/v2.10.0rc2/a00163.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00164.php b/projects/hwloc/doc/v2.10.0rc2/a00164.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00164.php rename to projects/hwloc/doc/v2.10.0rc2/a00164.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00165.php b/projects/hwloc/doc/v2.10.0rc2/a00165.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00165.php rename to projects/hwloc/doc/v2.10.0rc2/a00165.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00166.php b/projects/hwloc/doc/v2.10.0rc2/a00166.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00166.php rename to projects/hwloc/doc/v2.10.0rc2/a00166.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00167.php b/projects/hwloc/doc/v2.10.0rc2/a00167.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00167.php rename to projects/hwloc/doc/v2.10.0rc2/a00167.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00168.php b/projects/hwloc/doc/v2.10.0rc2/a00168.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00168.php rename to projects/hwloc/doc/v2.10.0rc2/a00168.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00169.php b/projects/hwloc/doc/v2.10.0rc2/a00169.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00169.php rename to projects/hwloc/doc/v2.10.0rc2/a00169.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00170.php b/projects/hwloc/doc/v2.10.0rc2/a00170.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00170.php rename to projects/hwloc/doc/v2.10.0rc2/a00170.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00171.php b/projects/hwloc/doc/v2.10.0rc2/a00171.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00171.php rename to projects/hwloc/doc/v2.10.0rc2/a00171.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00172.php b/projects/hwloc/doc/v2.10.0rc2/a00172.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00172.php rename to projects/hwloc/doc/v2.10.0rc2/a00172.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00173.php b/projects/hwloc/doc/v2.10.0rc2/a00173.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00173.php rename to projects/hwloc/doc/v2.10.0rc2/a00173.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00174.php b/projects/hwloc/doc/v2.10.0rc2/a00174.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00174.php rename to projects/hwloc/doc/v2.10.0rc2/a00174.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00175.php b/projects/hwloc/doc/v2.10.0rc2/a00175.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00175.php rename to projects/hwloc/doc/v2.10.0rc2/a00175.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00176.php b/projects/hwloc/doc/v2.10.0rc2/a00176.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00176.php rename to projects/hwloc/doc/v2.10.0rc2/a00176.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00177.php b/projects/hwloc/doc/v2.10.0rc2/a00177.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00177.php rename to projects/hwloc/doc/v2.10.0rc2/a00177.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00178.php b/projects/hwloc/doc/v2.10.0rc2/a00178.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00178.php rename to projects/hwloc/doc/v2.10.0rc2/a00178.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00179.php b/projects/hwloc/doc/v2.10.0rc2/a00179.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00179.php rename to projects/hwloc/doc/v2.10.0rc2/a00179.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00180.php b/projects/hwloc/doc/v2.10.0rc2/a00180.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00180.php rename to projects/hwloc/doc/v2.10.0rc2/a00180.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00181.php b/projects/hwloc/doc/v2.10.0rc2/a00181.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00181.php rename to projects/hwloc/doc/v2.10.0rc2/a00181.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00182.php b/projects/hwloc/doc/v2.10.0rc2/a00182.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00182.php rename to projects/hwloc/doc/v2.10.0rc2/a00182.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00183.php b/projects/hwloc/doc/v2.10.0rc2/a00183.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00183.php rename to projects/hwloc/doc/v2.10.0rc2/a00183.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00184.php b/projects/hwloc/doc/v2.10.0rc2/a00184.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00184.php rename to projects/hwloc/doc/v2.10.0rc2/a00184.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00185.php b/projects/hwloc/doc/v2.10.0rc2/a00185.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00185.php rename to projects/hwloc/doc/v2.10.0rc2/a00185.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00186.php b/projects/hwloc/doc/v2.10.0rc2/a00186.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00186.php rename to projects/hwloc/doc/v2.10.0rc2/a00186.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00187.php b/projects/hwloc/doc/v2.10.0rc2/a00187.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00187.php rename to projects/hwloc/doc/v2.10.0rc2/a00187.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00188.php b/projects/hwloc/doc/v2.10.0rc2/a00188.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00188.php rename to projects/hwloc/doc/v2.10.0rc2/a00188.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00189.php b/projects/hwloc/doc/v2.10.0rc2/a00189.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00189.php rename to projects/hwloc/doc/v2.10.0rc2/a00189.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00193.php b/projects/hwloc/doc/v2.10.0rc2/a00193.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00193.php rename to projects/hwloc/doc/v2.10.0rc2/a00193.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00197.php b/projects/hwloc/doc/v2.10.0rc2/a00197.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00197.php rename to projects/hwloc/doc/v2.10.0rc2/a00197.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00201.php b/projects/hwloc/doc/v2.10.0rc2/a00201.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00201.php rename to projects/hwloc/doc/v2.10.0rc2/a00201.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00205.php b/projects/hwloc/doc/v2.10.0rc2/a00205.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00205.php rename to projects/hwloc/doc/v2.10.0rc2/a00205.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00209.php b/projects/hwloc/doc/v2.10.0rc2/a00209.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00209.php rename to projects/hwloc/doc/v2.10.0rc2/a00209.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00213.php b/projects/hwloc/doc/v2.10.0rc2/a00213.php similarity index 100% rename from projects/hwloc/doc/v2.10.0rc1/a00213.php rename to projects/hwloc/doc/v2.10.0rc2/a00213.php diff --git a/projects/hwloc/doc/v2.10.0rc1/a00217.php b/projects/hwloc/doc/v2.10.0rc2/a00217.php similarity index 93% rename from projects/hwloc/doc/v2.10.0rc1/a00217.php rename to projects/hwloc/doc/v2.10.0rc2/a00217.php index c7399b84e..29ca4a825 100644 --- a/projects/hwloc/doc/v2.10.0rc1/a00217.php +++ b/projects/hwloc/doc/v2.10.0rc2/a00217.php @@ -76,6 +76,8 @@
+

Bus number (yy in the PCI BDF notation xxxx:yy:zz.t).

+
@@ -90,6 +92,8 @@
+

The class number (first two bytes, without the prog_if).

+
@@ -104,6 +108,8 @@
+

Device number (zz in the PCI BDF notation xxxx:yy:zz.t).

+
@@ -118,6 +124,8 @@
+

Device ID (yyyy in [xxxx:yyyy]).

+
@@ -132,6 +140,8 @@
+

Domain number (xxxx in the PCI BDF notation xxxx:yy:zz.t). Only 16bits PCI domains are supported by default.

+
@@ -146,6 +156,8 @@
+

Function number (t in the PCI BDF notation xxxx:yy:zz.t).

+
@@ -160,6 +172,8 @@
+

Link speed in GB/s. This datarate is the currently configured speed of the entire PCI link (sum of the bandwidth of all PCI lanes in that link). It may change during execution since some devices are able to slow their PCI links down when idle.

+
@@ -174,6 +188,8 @@
+

Revision number.

+
@@ -188,6 +204,8 @@
+

Sub-Device ID.

+
@@ -202,6 +220,8 @@
+

Sub-Vendor ID.

+
@@ -216,6 +236,8 @@
+

Vendor ID (xxxx in [xxxx:yyyy]).

+

The documentation for this struct was generated from the following file: