1 /* 2 * Copyright © 2009-2011 Cisco Systems, Inc. All rights reserved. 3 * Copyright © 2010-2021 Inria. All rights reserved. 4 * See COPYING in top-level directory. 5 */ 6 7 #ifndef HWLOC_RENAME_H 8 #define HWLOC_RENAME_H 9 10 #include "hwloc/autogen/config.h" 11 12 13 #ifdef __cplusplus 14 extern "C" { 15 #endif 16 17 18 /* Only enact these defines if we're actually renaming the symbols 19 (i.e., avoid trying to have no-op defines if we're *not* 20 renaming). */ 21 22 #if HWLOC_SYM_TRANSFORM 23 24 /* Use a preprocessor two-step in order to get the prefixing right. 25 Make 2 macros: HWLOC_NAME and HWLOC_NAME_CAPS for renaming 26 things. */ 27 28 #define HWLOC_MUNGE_NAME(a, b) HWLOC_MUNGE_NAME2(a, b) 29 #define HWLOC_MUNGE_NAME2(a, b) a ## b 30 #define HWLOC_NAME(name) HWLOC_MUNGE_NAME(HWLOC_SYM_PREFIX, hwloc_ ## name) 31 /* FIXME: should be "HWLOC_ ## name" below, unchanged because it doesn't matter much and could break some embedders hacks */ 32 #define HWLOC_NAME_CAPS(name) HWLOC_MUNGE_NAME(HWLOC_SYM_PREFIX_CAPS, hwloc_ ## name) 33 34 /* Now define all the "real" names to be the prefixed names. This 35 allows us to use the real names throughout the code base (i.e., 36 "hwloc_<foo>"); the preprocessor will adjust to have the prefixed 37 name under the covers. */ 38 39 /* Names from hwloc.h */ 40 41 #define hwloc_get_api_version HWLOC_NAME(get_api_version) 42 43 #define hwloc_topology HWLOC_NAME(topology) 44 #define hwloc_topology_t HWLOC_NAME(topology_t) 45 46 #define hwloc_cpuset_t HWLOC_NAME(cpuset_t) 47 #define hwloc_const_cpuset_t HWLOC_NAME(const_cpuset_t) 48 #define hwloc_nodeset_t HWLOC_NAME(nodeset_t) 49 #define hwloc_const_nodeset_t HWLOC_NAME(const_nodeset_t) 50 51 #define HWLOC_OBJ_MACHINE HWLOC_NAME_CAPS(OBJ_MACHINE) 52 #define HWLOC_OBJ_NUMANODE HWLOC_NAME_CAPS(OBJ_NUMANODE) 53 #define HWLOC_OBJ_MEMCACHE HWLOC_NAME_CAPS(OBJ_MEMCACHE) 54 #define HWLOC_OBJ_PACKAGE HWLOC_NAME_CAPS(OBJ_PACKAGE) 55 #define HWLOC_OBJ_DIE HWLOC_NAME_CAPS(OBJ_DIE) 56 #define HWLOC_OBJ_CORE HWLOC_NAME_CAPS(OBJ_CORE) 57 #define HWLOC_OBJ_PU HWLOC_NAME_CAPS(OBJ_PU) 58 #define HWLOC_OBJ_L1CACHE HWLOC_NAME_CAPS(OBJ_L1CACHE) 59 #define HWLOC_OBJ_L2CACHE HWLOC_NAME_CAPS(OBJ_L2CACHE) 60 #define HWLOC_OBJ_L3CACHE HWLOC_NAME_CAPS(OBJ_L3CACHE) 61 #define HWLOC_OBJ_L4CACHE HWLOC_NAME_CAPS(OBJ_L4CACHE) 62 #define HWLOC_OBJ_L5CACHE HWLOC_NAME_CAPS(OBJ_L5CACHE) 63 #define HWLOC_OBJ_L1ICACHE HWLOC_NAME_CAPS(OBJ_L1ICACHE) 64 #define HWLOC_OBJ_L2ICACHE HWLOC_NAME_CAPS(OBJ_L2ICACHE) 65 #define HWLOC_OBJ_L3ICACHE HWLOC_NAME_CAPS(OBJ_L3ICACHE) 66 #define HWLOC_OBJ_MISC HWLOC_NAME_CAPS(OBJ_MISC) 67 #define HWLOC_OBJ_GROUP HWLOC_NAME_CAPS(OBJ_GROUP) 68 #define HWLOC_OBJ_BRIDGE HWLOC_NAME_CAPS(OBJ_BRIDGE) 69 #define HWLOC_OBJ_PCI_DEVICE HWLOC_NAME_CAPS(OBJ_PCI_DEVICE) 70 #define HWLOC_OBJ_OS_DEVICE HWLOC_NAME_CAPS(OBJ_OS_DEVICE) 71 #define HWLOC_OBJ_TYPE_MAX HWLOC_NAME_CAPS(OBJ_TYPE_MAX) 72 #define hwloc_obj_type_t HWLOC_NAME(obj_type_t) 73 74 #define hwloc_obj_cache_type_e HWLOC_NAME(obj_cache_type_e) 75 #define hwloc_obj_cache_type_t HWLOC_NAME(obj_cache_type_t) 76 #define HWLOC_OBJ_CACHE_UNIFIED HWLOC_NAME_CAPS(OBJ_CACHE_UNIFIED) 77 #define HWLOC_OBJ_CACHE_DATA HWLOC_NAME_CAPS(OBJ_CACHE_DATA) 78 #define HWLOC_OBJ_CACHE_INSTRUCTION HWLOC_NAME_CAPS(OBJ_CACHE_INSTRUCTION) 79 80 #define hwloc_obj_bridge_type_e HWLOC_NAME(obj_bridge_type_e) 81 #define hwloc_obj_bridge_type_t HWLOC_NAME(obj_bridge_type_t) 82 #define HWLOC_OBJ_BRIDGE_HOST HWLOC_NAME_CAPS(OBJ_BRIDGE_HOST) 83 #define HWLOC_OBJ_BRIDGE_PCI HWLOC_NAME_CAPS(OBJ_BRIDGE_PCI) 84 85 #define hwloc_obj_osdev_type_e HWLOC_NAME(obj_osdev_type_e) 86 #define hwloc_obj_osdev_type_t HWLOC_NAME(obj_osdev_type_t) 87 #define HWLOC_OBJ_OSDEV_BLOCK HWLOC_NAME_CAPS(OBJ_OSDEV_BLOCK) 88 #define HWLOC_OBJ_OSDEV_GPU HWLOC_NAME_CAPS(OBJ_OSDEV_GPU) 89 #define HWLOC_OBJ_OSDEV_NETWORK HWLOC_NAME_CAPS(OBJ_OSDEV_NETWORK) 90 #define HWLOC_OBJ_OSDEV_OPENFABRICS HWLOC_NAME_CAPS(OBJ_OSDEV_OPENFABRICS) 91 #define HWLOC_OBJ_OSDEV_DMA HWLOC_NAME_CAPS(OBJ_OSDEV_DMA) 92 #define HWLOC_OBJ_OSDEV_COPROC HWLOC_NAME_CAPS(OBJ_OSDEV_COPROC) 93 94 #define hwloc_compare_types HWLOC_NAME(compare_types) 95 96 #define hwloc_obj HWLOC_NAME(obj) 97 #define hwloc_obj_t HWLOC_NAME(obj_t) 98 99 #define hwloc_info_s HWLOC_NAME(info_s) 100 101 #define hwloc_obj_attr_u HWLOC_NAME(obj_attr_u) 102 #define hwloc_numanode_attr_s HWLOC_NAME(numanode_attr_s) 103 #define hwloc_memory_page_type_s HWLOC_NAME(memory_page_type_s) 104 #define hwloc_cache_attr_s HWLOC_NAME(cache_attr_s) 105 #define hwloc_group_attr_s HWLOC_NAME(group_attr_s) 106 #define hwloc_pcidev_attr_s HWLOC_NAME(pcidev_attr_s) 107 #define hwloc_bridge_attr_s HWLOC_NAME(bridge_attr_s) 108 #define hwloc_osdev_attr_s HWLOC_NAME(osdev_attr_s) 109 110 #define hwloc_topology_init HWLOC_NAME(topology_init) 111 #define hwloc_topology_load HWLOC_NAME(topology_load) 112 #define hwloc_topology_destroy HWLOC_NAME(topology_destroy) 113 #define hwloc_topology_dup HWLOC_NAME(topology_dup) 114 #define hwloc_topology_abi_check HWLOC_NAME(topology_abi_check) 115 #define hwloc_topology_check HWLOC_NAME(topology_check) 116 117 #define hwloc_topology_flags_e HWLOC_NAME(topology_flags_e) 118 119 #define HWLOC_TOPOLOGY_FLAG_INCLUDE_DISALLOWED HWLOC_NAME_CAPS(TOPOLOGY_FLAG_WITH_DISALLOWED) 120 #define HWLOC_TOPOLOGY_FLAG_IS_THISSYSTEM HWLOC_NAME_CAPS(TOPOLOGY_FLAG_IS_THISSYSTEM) 121 #define HWLOC_TOPOLOGY_FLAG_THISSYSTEM_ALLOWED_RESOURCES HWLOC_NAME_CAPS(TOPOLOGY_FLAG_THISSYSTEM_ALLOWED_RESOURCES) 122 #define HWLOC_TOPOLOGY_FLAG_IMPORT_SUPPORT HWLOC_NAME_CAPS(TOPOLOGY_FLAG_IMPORT_SUPPORT) 123 #define HWLOC_TOPOLOGY_FLAG_RESTRICT_TO_CPUBINDING HWLOC_NAME_CAPS(TOPOLOGY_FLAG_RESTRICT_TO_CPUBINDING) 124 #define HWLOC_TOPOLOGY_FLAG_RESTRICT_TO_MEMBINDING HWLOC_NAME_CAPS(TOPOLOGY_FLAG_RESTRICT_TO_MEMBINDING) 125 #define HWLOC_TOPOLOGY_FLAG_DONT_CHANGE_BINDING HWLOC_NAME_CAPS(TOPOLOGY_FLAG_DONT_CHANGE_BINDING) 126 127 #define hwloc_topology_set_pid HWLOC_NAME(topology_set_pid) 128 #define hwloc_topology_set_synthetic HWLOC_NAME(topology_set_synthetic) 129 #define hwloc_topology_set_xml HWLOC_NAME(topology_set_xml) 130 #define hwloc_topology_set_xmlbuffer HWLOC_NAME(topology_set_xmlbuffer) 131 #define hwloc_topology_components_flag_e HWLOC_NAME(hwloc_topology_components_flag_e) 132 #define HWLOC_TOPOLOGY_COMPONENTS_FLAG_BLACKLIST HWLOC_NAME_CAPS(TOPOLOGY_COMPONENTS_FLAG_BLACKLIST) 133 #define hwloc_topology_set_components HWLOC_NAME(topology_set_components) 134 135 #define hwloc_topology_set_flags HWLOC_NAME(topology_set_flags) 136 #define hwloc_topology_is_thissystem HWLOC_NAME(topology_is_thissystem) 137 #define hwloc_topology_get_flags HWLOC_NAME(topology_get_flags) 138 #define hwloc_topology_discovery_support HWLOC_NAME(topology_discovery_support) 139 #define hwloc_topology_cpubind_support HWLOC_NAME(topology_cpubind_support) 140 #define hwloc_topology_membind_support HWLOC_NAME(topology_membind_support) 141 #define hwloc_topology_misc_support HWLOC_NAME(topology_misc_support) 142 #define hwloc_topology_support HWLOC_NAME(topology_support) 143 #define hwloc_topology_get_support HWLOC_NAME(topology_get_support) 144 145 #define hwloc_type_filter_e HWLOC_NAME(type_filter_e) 146 #define HWLOC_TYPE_FILTER_KEEP_ALL HWLOC_NAME_CAPS(TYPE_FILTER_KEEP_ALL) 147 #define HWLOC_TYPE_FILTER_KEEP_NONE HWLOC_NAME_CAPS(TYPE_FILTER_KEEP_NONE) 148 #define HWLOC_TYPE_FILTER_KEEP_STRUCTURE HWLOC_NAME_CAPS(TYPE_FILTER_KEEP_STRUCTURE) 149 #define HWLOC_TYPE_FILTER_KEEP_IMPORTANT HWLOC_NAME_CAPS(TYPE_FILTER_KEEP_IMPORTANT) 150 #define hwloc_topology_set_type_filter HWLOC_NAME(topology_set_type_filter) 151 #define hwloc_topology_get_type_filter HWLOC_NAME(topology_get_type_filter) 152 #define hwloc_topology_set_all_types_filter HWLOC_NAME(topology_set_all_types_filter) 153 #define hwloc_topology_set_cache_types_filter HWLOC_NAME(topology_set_cache_types_filter) 154 #define hwloc_topology_set_icache_types_filter HWLOC_NAME(topology_set_icache_types_filter) 155 #define hwloc_topology_set_io_types_filter HWLOC_NAME(topology_set_io_types_filter) 156 157 #define hwloc_topology_set_userdata HWLOC_NAME(topology_set_userdata) 158 #define hwloc_topology_get_userdata HWLOC_NAME(topology_get_userdata) 159 160 #define hwloc_restrict_flags_e HWLOC_NAME(restrict_flags_e) 161 #define HWLOC_RESTRICT_FLAG_REMOVE_CPULESS HWLOC_NAME_CAPS(RESTRICT_FLAG_REMOVE_CPULESS) 162 #define HWLOC_RESTRICT_FLAG_BYNODESET HWLOC_NAME_CAPS(RESTRICT_FLAG_BYNODESET) 163 #define HWLOC_RESTRICT_FLAG_REMOVE_MEMLESS HWLOC_NAME_CAPS(RESTRICT_FLAG_REMOVE_MEMLESS) 164 #define HWLOC_RESTRICT_FLAG_ADAPT_MISC HWLOC_NAME_CAPS(RESTRICT_FLAG_ADAPT_MISC) 165 #define HWLOC_RESTRICT_FLAG_ADAPT_IO HWLOC_NAME_CAPS(RESTRICT_FLAG_ADAPT_IO) 166 #define hwloc_topology_restrict HWLOC_NAME(topology_restrict) 167 168 #define hwloc_allow_flags_e HWLOC_NAME(allow_flags_e) 169 #define HWLOC_ALLOW_FLAG_ALL HWLOC_NAME_CAPS(ALLOW_FLAG_ALL) 170 #define HWLOC_ALLOW_FLAG_LOCAL_RESTRICTIONS HWLOC_NAME_CAPS(ALLOW_FLAG_LOCAL_RESTRICTIONS) 171 #define HWLOC_ALLOW_FLAG_CUSTOM HWLOC_NAME_CAPS(ALLOW_FLAG_CUSTOM) 172 #define hwloc_topology_allow HWLOC_NAME(topology_allow) 173 174 #define hwloc_topology_insert_misc_object HWLOC_NAME(topology_insert_misc_object) 175 #define hwloc_topology_alloc_group_object HWLOC_NAME(topology_alloc_group_object) 176 #define hwloc_topology_insert_group_object HWLOC_NAME(topology_insert_group_object) 177 #define hwloc_obj_add_other_obj_sets HWLOC_NAME(obj_add_other_obj_sets) 178 #define hwloc_topology_refresh HWLOC_NAME(topology_refresh) 179 180 #define hwloc_topology_get_depth HWLOC_NAME(topology_get_depth) 181 #define hwloc_get_type_depth HWLOC_NAME(get_type_depth) 182 #define hwloc_get_memory_parents_depth HWLOC_NAME(get_memory_parents_depth) 183 184 #define hwloc_get_type_depth_e HWLOC_NAME(get_type_depth_e) 185 #define HWLOC_TYPE_DEPTH_UNKNOWN HWLOC_NAME_CAPS(TYPE_DEPTH_UNKNOWN) 186 #define HWLOC_TYPE_DEPTH_MULTIPLE HWLOC_NAME_CAPS(TYPE_DEPTH_MULTIPLE) 187 #define HWLOC_TYPE_DEPTH_BRIDGE HWLOC_NAME_CAPS(TYPE_DEPTH_BRIDGE) 188 #define HWLOC_TYPE_DEPTH_PCI_DEVICE HWLOC_NAME_CAPS(TYPE_DEPTH_PCI_DEVICE) 189 #define HWLOC_TYPE_DEPTH_OS_DEVICE HWLOC_NAME_CAPS(TYPE_DEPTH_OS_DEVICE) 190 #define HWLOC_TYPE_DEPTH_MISC HWLOC_NAME_CAPS(TYPE_DEPTH_MISC) 191 #define HWLOC_TYPE_DEPTH_NUMANODE HWLOC_NAME_CAPS(TYPE_DEPTH_NUMANODE) 192 #define HWLOC_TYPE_DEPTH_MEMCACHE HWLOC_NAME_CAPS(TYPE_DEPTH_MEMCACHE) 193 194 #define hwloc_get_depth_type HWLOC_NAME(get_depth_type) 195 #define hwloc_get_nbobjs_by_depth HWLOC_NAME(get_nbobjs_by_depth) 196 #define hwloc_get_nbobjs_by_type HWLOC_NAME(get_nbobjs_by_type) 197 198 #define hwloc_get_obj_by_depth HWLOC_NAME(get_obj_by_depth ) 199 #define hwloc_get_obj_by_type HWLOC_NAME(get_obj_by_type ) 200 201 #define hwloc_obj_type_string HWLOC_NAME(obj_type_string ) 202 #define hwloc_obj_type_snprintf HWLOC_NAME(obj_type_snprintf ) 203 #define hwloc_obj_attr_snprintf HWLOC_NAME(obj_attr_snprintf ) 204 #define hwloc_type_sscanf HWLOC_NAME(type_sscanf) 205 #define hwloc_type_sscanf_as_depth HWLOC_NAME(type_sscanf_as_depth) 206 207 #define hwloc_obj_get_info_by_name HWLOC_NAME(obj_get_info_by_name) 208 #define hwloc_obj_add_info HWLOC_NAME(obj_add_info) 209 210 #define HWLOC_CPUBIND_PROCESS HWLOC_NAME_CAPS(CPUBIND_PROCESS) 211 #define HWLOC_CPUBIND_THREAD HWLOC_NAME_CAPS(CPUBIND_THREAD) 212 #define HWLOC_CPUBIND_STRICT HWLOC_NAME_CAPS(CPUBIND_STRICT) 213 #define HWLOC_CPUBIND_NOMEMBIND HWLOC_NAME_CAPS(CPUBIND_NOMEMBIND) 214 215 #define hwloc_cpubind_flags_t HWLOC_NAME(cpubind_flags_t) 216 217 #define hwloc_set_cpubind HWLOC_NAME(set_cpubind) 218 #define hwloc_get_cpubind HWLOC_NAME(get_cpubind) 219 #define hwloc_set_proc_cpubind HWLOC_NAME(set_proc_cpubind) 220 #define hwloc_get_proc_cpubind HWLOC_NAME(get_proc_cpubind) 221 #define hwloc_set_thread_cpubind HWLOC_NAME(set_thread_cpubind) 222 #define hwloc_get_thread_cpubind HWLOC_NAME(get_thread_cpubind) 223 224 #define hwloc_get_last_cpu_location HWLOC_NAME(get_last_cpu_location) 225 #define hwloc_get_proc_last_cpu_location HWLOC_NAME(get_proc_last_cpu_location) 226 227 #define HWLOC_MEMBIND_DEFAULT HWLOC_NAME_CAPS(MEMBIND_DEFAULT) 228 #define HWLOC_MEMBIND_FIRSTTOUCH HWLOC_NAME_CAPS(MEMBIND_FIRSTTOUCH) 229 #define HWLOC_MEMBIND_BIND HWLOC_NAME_CAPS(MEMBIND_BIND) 230 #define HWLOC_MEMBIND_INTERLEAVE HWLOC_NAME_CAPS(MEMBIND_INTERLEAVE) 231 #define HWLOC_MEMBIND_NEXTTOUCH HWLOC_NAME_CAPS(MEMBIND_NEXTTOUCH) 232 #define HWLOC_MEMBIND_MIXED HWLOC_NAME_CAPS(MEMBIND_MIXED) 233 234 #define hwloc_membind_policy_t HWLOC_NAME(membind_policy_t) 235 236 #define HWLOC_MEMBIND_PROCESS HWLOC_NAME_CAPS(MEMBIND_PROCESS) 237 #define HWLOC_MEMBIND_THREAD HWLOC_NAME_CAPS(MEMBIND_THREAD) 238 #define HWLOC_MEMBIND_STRICT HWLOC_NAME_CAPS(MEMBIND_STRICT) 239 #define HWLOC_MEMBIND_MIGRATE HWLOC_NAME_CAPS(MEMBIND_MIGRATE) 240 #define HWLOC_MEMBIND_NOCPUBIND HWLOC_NAME_CAPS(MEMBIND_NOCPUBIND) 241 #define HWLOC_MEMBIND_BYNODESET HWLOC_NAME_CAPS(MEMBIND_BYNODESET) 242 243 #define hwloc_membind_flags_t HWLOC_NAME(membind_flags_t) 244 245 #define hwloc_set_membind HWLOC_NAME(set_membind) 246 #define hwloc_get_membind HWLOC_NAME(get_membind) 247 #define hwloc_set_proc_membind HWLOC_NAME(set_proc_membind) 248 #define hwloc_get_proc_membind HWLOC_NAME(get_proc_membind) 249 #define hwloc_set_area_membind HWLOC_NAME(set_area_membind) 250 #define hwloc_get_area_membind HWLOC_NAME(get_area_membind) 251 #define hwloc_get_area_memlocation HWLOC_NAME(get_area_memlocation) 252 #define hwloc_alloc_membind HWLOC_NAME(alloc_membind) 253 #define hwloc_alloc HWLOC_NAME(alloc) 254 #define hwloc_free HWLOC_NAME(free) 255 256 #define hwloc_get_non_io_ancestor_obj HWLOC_NAME(get_non_io_ancestor_obj) 257 #define hwloc_get_next_pcidev HWLOC_NAME(get_next_pcidev) 258 #define hwloc_get_pcidev_by_busid HWLOC_NAME(get_pcidev_by_busid) 259 #define hwloc_get_pcidev_by_busidstring HWLOC_NAME(get_pcidev_by_busidstring) 260 #define hwloc_get_next_osdev HWLOC_NAME(get_next_osdev) 261 #define hwloc_get_next_bridge HWLOC_NAME(get_next_bridge) 262 #define hwloc_bridge_covers_pcibus HWLOC_NAME(bridge_covers_pcibus) 263 264 /* hwloc/bitmap.h */ 265 266 #define hwloc_bitmap_s HWLOC_NAME(bitmap_s) 267 #define hwloc_bitmap_t HWLOC_NAME(bitmap_t) 268 #define hwloc_const_bitmap_t HWLOC_NAME(const_bitmap_t) 269 270 #define hwloc_bitmap_alloc HWLOC_NAME(bitmap_alloc) 271 #define hwloc_bitmap_alloc_full HWLOC_NAME(bitmap_alloc_full) 272 #define hwloc_bitmap_free HWLOC_NAME(bitmap_free) 273 #define hwloc_bitmap_dup HWLOC_NAME(bitmap_dup) 274 #define hwloc_bitmap_copy HWLOC_NAME(bitmap_copy) 275 #define hwloc_bitmap_snprintf HWLOC_NAME(bitmap_snprintf) 276 #define hwloc_bitmap_asprintf HWLOC_NAME(bitmap_asprintf) 277 #define hwloc_bitmap_sscanf HWLOC_NAME(bitmap_sscanf) 278 #define hwloc_bitmap_list_snprintf HWLOC_NAME(bitmap_list_snprintf) 279 #define hwloc_bitmap_list_asprintf HWLOC_NAME(bitmap_list_asprintf) 280 #define hwloc_bitmap_list_sscanf HWLOC_NAME(bitmap_list_sscanf) 281 #define hwloc_bitmap_taskset_snprintf HWLOC_NAME(bitmap_taskset_snprintf) 282 #define hwloc_bitmap_taskset_asprintf HWLOC_NAME(bitmap_taskset_asprintf) 283 #define hwloc_bitmap_taskset_sscanf HWLOC_NAME(bitmap_taskset_sscanf) 284 #define hwloc_bitmap_zero HWLOC_NAME(bitmap_zero) 285 #define hwloc_bitmap_fill HWLOC_NAME(bitmap_fill) 286 #define hwloc_bitmap_from_ulong HWLOC_NAME(bitmap_from_ulong) 287 #define hwloc_bitmap_from_ulongs HWLOC_NAME(bitmap_from_ulongs) 288 #define hwloc_bitmap_from_ith_ulong HWLOC_NAME(bitmap_from_ith_ulong) 289 #define hwloc_bitmap_to_ulong HWLOC_NAME(bitmap_to_ulong) 290 #define hwloc_bitmap_to_ith_ulong HWLOC_NAME(bitmap_to_ith_ulong) 291 #define hwloc_bitmap_to_ulongs HWLOC_NAME(bitmap_to_ulongs) 292 #define hwloc_bitmap_nr_ulongs HWLOC_NAME(bitmap_nr_ulongs) 293 #define hwloc_bitmap_only HWLOC_NAME(bitmap_only) 294 #define hwloc_bitmap_allbut HWLOC_NAME(bitmap_allbut) 295 #define hwloc_bitmap_set HWLOC_NAME(bitmap_set) 296 #define hwloc_bitmap_set_range HWLOC_NAME(bitmap_set_range) 297 #define hwloc_bitmap_set_ith_ulong HWLOC_NAME(bitmap_set_ith_ulong) 298 #define hwloc_bitmap_clr HWLOC_NAME(bitmap_clr) 299 #define hwloc_bitmap_clr_range HWLOC_NAME(bitmap_clr_range) 300 #define hwloc_bitmap_isset HWLOC_NAME(bitmap_isset) 301 #define hwloc_bitmap_iszero HWLOC_NAME(bitmap_iszero) 302 #define hwloc_bitmap_isfull HWLOC_NAME(bitmap_isfull) 303 #define hwloc_bitmap_isequal HWLOC_NAME(bitmap_isequal) 304 #define hwloc_bitmap_intersects HWLOC_NAME(bitmap_intersects) 305 #define hwloc_bitmap_isincluded HWLOC_NAME(bitmap_isincluded) 306 #define hwloc_bitmap_or HWLOC_NAME(bitmap_or) 307 #define hwloc_bitmap_and HWLOC_NAME(bitmap_and) 308 #define hwloc_bitmap_andnot HWLOC_NAME(bitmap_andnot) 309 #define hwloc_bitmap_xor HWLOC_NAME(bitmap_xor) 310 #define hwloc_bitmap_not HWLOC_NAME(bitmap_not) 311 #define hwloc_bitmap_first HWLOC_NAME(bitmap_first) 312 #define hwloc_bitmap_last HWLOC_NAME(bitmap_last) 313 #define hwloc_bitmap_next HWLOC_NAME(bitmap_next) 314 #define hwloc_bitmap_first_unset HWLOC_NAME(bitmap_first_unset) 315 #define hwloc_bitmap_last_unset HWLOC_NAME(bitmap_last_unset) 316 #define hwloc_bitmap_next_unset HWLOC_NAME(bitmap_next_unset) 317 #define hwloc_bitmap_singlify HWLOC_NAME(bitmap_singlify) 318 #define hwloc_bitmap_compare_first HWLOC_NAME(bitmap_compare_first) 319 #define hwloc_bitmap_compare HWLOC_NAME(bitmap_compare) 320 #define hwloc_bitmap_weight HWLOC_NAME(bitmap_weight) 321 322 /* hwloc/helper.h */ 323 324 #define hwloc_get_type_or_below_depth HWLOC_NAME(get_type_or_below_depth) 325 #define hwloc_get_type_or_above_depth HWLOC_NAME(get_type_or_above_depth) 326 #define hwloc_get_root_obj HWLOC_NAME(get_root_obj) 327 #define hwloc_get_ancestor_obj_by_depth HWLOC_NAME(get_ancestor_obj_by_depth) 328 #define hwloc_get_ancestor_obj_by_type HWLOC_NAME(get_ancestor_obj_by_type) 329 #define hwloc_get_next_obj_by_depth HWLOC_NAME(get_next_obj_by_depth) 330 #define hwloc_get_next_obj_by_type HWLOC_NAME(get_next_obj_by_type) 331 #define hwloc_bitmap_singlify_per_core HWLOC_NAME(bitmap_singlify_by_core) 332 #define hwloc_get_pu_obj_by_os_index HWLOC_NAME(get_pu_obj_by_os_index) 333 #define hwloc_get_numanode_obj_by_os_index HWLOC_NAME(get_numanode_obj_by_os_index) 334 #define hwloc_get_next_child HWLOC_NAME(get_next_child) 335 #define hwloc_get_common_ancestor_obj HWLOC_NAME(get_common_ancestor_obj) 336 #define hwloc_obj_is_in_subtree HWLOC_NAME(obj_is_in_subtree) 337 #define hwloc_get_first_largest_obj_inside_cpuset HWLOC_NAME(get_first_largest_obj_inside_cpuset) 338 #define hwloc_get_largest_objs_inside_cpuset HWLOC_NAME(get_largest_objs_inside_cpuset) 339 #define hwloc_get_next_obj_inside_cpuset_by_depth HWLOC_NAME(get_next_obj_inside_cpuset_by_depth) 340 #define hwloc_get_next_obj_inside_cpuset_by_type HWLOC_NAME(get_next_obj_inside_cpuset_by_type) 341 #define hwloc_get_obj_inside_cpuset_by_depth HWLOC_NAME(get_obj_inside_cpuset_by_depth) 342 #define hwloc_get_obj_inside_cpuset_by_type HWLOC_NAME(get_obj_inside_cpuset_by_type) 343 #define hwloc_get_nbobjs_inside_cpuset_by_depth HWLOC_NAME(get_nbobjs_inside_cpuset_by_depth) 344 #define hwloc_get_nbobjs_inside_cpuset_by_type HWLOC_NAME(get_nbobjs_inside_cpuset_by_type) 345 #define hwloc_get_obj_index_inside_cpuset HWLOC_NAME(get_obj_index_inside_cpuset) 346 #define hwloc_get_child_covering_cpuset HWLOC_NAME(get_child_covering_cpuset) 347 #define hwloc_get_obj_covering_cpuset HWLOC_NAME(get_obj_covering_cpuset) 348 #define hwloc_get_next_obj_covering_cpuset_by_depth HWLOC_NAME(get_next_obj_covering_cpuset_by_depth) 349 #define hwloc_get_next_obj_covering_cpuset_by_type HWLOC_NAME(get_next_obj_covering_cpuset_by_type) 350 #define hwloc_obj_type_is_normal HWLOC_NAME(obj_type_is_normal) 351 #define hwloc_obj_type_is_memory HWLOC_NAME(obj_type_is_memory) 352 #define hwloc_obj_type_is_io HWLOC_NAME(obj_type_is_io) 353 #define hwloc_obj_type_is_cache HWLOC_NAME(obj_type_is_cache) 354 #define hwloc_obj_type_is_dcache HWLOC_NAME(obj_type_is_dcache) 355 #define hwloc_obj_type_is_icache HWLOC_NAME(obj_type_is_icache) 356 #define hwloc_get_cache_type_depth HWLOC_NAME(get_cache_type_depth) 357 #define hwloc_get_cache_covering_cpuset HWLOC_NAME(get_cache_covering_cpuset) 358 #define hwloc_get_shared_cache_covering_obj HWLOC_NAME(get_shared_cache_covering_obj) 359 #define hwloc_get_closest_objs HWLOC_NAME(get_closest_objs) 360 #define hwloc_get_obj_below_by_type HWLOC_NAME(get_obj_below_by_type) 361 #define hwloc_get_obj_below_array_by_type HWLOC_NAME(get_obj_below_array_by_type) 362 #define hwloc_get_obj_with_same_locality HWLOC_NAME(get_obj_with_same_locality) 363 #define hwloc_distrib_flags_e HWLOC_NAME(distrib_flags_e) 364 #define HWLOC_DISTRIB_FLAG_REVERSE HWLOC_NAME_CAPS(DISTRIB_FLAG_REVERSE) 365 #define hwloc_distrib HWLOC_NAME(distrib) 366 #define hwloc_alloc_membind_policy HWLOC_NAME(alloc_membind_policy) 367 #define hwloc_alloc_membind_policy_nodeset HWLOC_NAME(alloc_membind_policy_nodeset) 368 #define hwloc_topology_get_complete_cpuset HWLOC_NAME(topology_get_complete_cpuset) 369 #define hwloc_topology_get_topology_cpuset HWLOC_NAME(topology_get_topology_cpuset) 370 #define hwloc_topology_get_allowed_cpuset HWLOC_NAME(topology_get_allowed_cpuset) 371 #define hwloc_topology_get_complete_nodeset HWLOC_NAME(topology_get_complete_nodeset) 372 #define hwloc_topology_get_topology_nodeset HWLOC_NAME(topology_get_topology_nodeset) 373 #define hwloc_topology_get_allowed_nodeset HWLOC_NAME(topology_get_allowed_nodeset) 374 #define hwloc_cpuset_to_nodeset HWLOC_NAME(cpuset_to_nodeset) 375 #define hwloc_cpuset_from_nodeset HWLOC_NAME(cpuset_from_nodeset) 376 377 /* memattrs.h */ 378 379 #define hwloc_memattr_id_e HWLOC_NAME(memattr_id_e) 380 #define HWLOC_MEMATTR_ID_CAPACITY HWLOC_NAME_CAPS(MEMATTR_ID_CAPACITY) 381 #define HWLOC_MEMATTR_ID_LOCALITY HWLOC_NAME_CAPS(MEMATTR_ID_LOCALITY) 382 #define HWLOC_MEMATTR_ID_BANDWIDTH HWLOC_NAME_CAPS(MEMATTR_ID_BANDWIDTH) 383 #define HWLOC_MEMATTR_ID_LATENCY HWLOC_NAME_CAPS(MEMATTR_ID_LATENCY) 384 385 #define hwloc_memattr_id_t HWLOC_NAME(memattr_id_t) 386 #define hwloc_memattr_get_by_name HWLOC_NAME(memattr_get_by_name) 387 388 #define hwloc_location HWLOC_NAME(location) 389 #define hwloc_location_type_e HWLOC_NAME(location_type_e) 390 #define HWLOC_LOCATION_TYPE_OBJECT HWLOC_NAME_CAPS(LOCATION_TYPE_OBJECT) 391 #define HWLOC_LOCATION_TYPE_CPUSET HWLOC_NAME_CAPS(LOCATION_TYPE_CPUSET) 392 #define hwloc_location_u HWLOC_NAME(location_u) 393 394 #define hwloc_memattr_get_value HWLOC_NAME(memattr_get_value) 395 #define hwloc_memattr_get_best_target HWLOC_NAME(memattr_get_best_target) 396 #define hwloc_memattr_get_best_initiator HWLOC_NAME(memattr_get_best_initiator) 397 398 #define hwloc_local_numanode_flag_e HWLOC_NAME(local_numanode_flag_e) 399 #define HWLOC_LOCAL_NUMANODE_FLAG_LARGER_LOCALITY HWLOC_NAME_CAPS(LOCAL_NUMANODE_FLAG_LARGER_LOCALITY) 400 #define HWLOC_LOCAL_NUMANODE_FLAG_SMALLER_LOCALITY HWLOC_NAME_CAPS(LOCAL_NUMANODE_FLAG_SMALLER_LOCALITY) 401 #define HWLOC_LOCAL_NUMANODE_FLAG_ALL HWLOC_NAME_CAPS(LOCAL_NUMANODE_FLAG_ALL) 402 #define hwloc_get_local_numanode_objs HWLOC_NAME(get_local_numanode_objs) 403 404 #define hwloc_memattr_get_name HWLOC_NAME(memattr_get_name) 405 #define hwloc_memattr_get_flags HWLOC_NAME(memattr_get_flags) 406 #define hwloc_memattr_flag_e HWLOC_NAME(memattr_flag_e) 407 #define HWLOC_MEMATTR_FLAG_HIGHER_FIRST HWLOC_NAME_CAPS(MEMATTR_FLAG_HIGHER_FIRST) 408 #define HWLOC_MEMATTR_FLAG_LOWER_FIRST HWLOC_NAME_CAPS(MEMATTR_FLAG_LOWER_FIRST) 409 #define HWLOC_MEMATTR_FLAG_NEED_INITIATOR HWLOC_NAME_CAPS(MEMATTR_FLAG_NEED_INITIATOR) 410 #define hwloc_memattr_register HWLOC_NAME(memattr_register) 411 #define hwloc_memattr_set_value HWLOC_NAME(memattr_set_value) 412 #define hwloc_memattr_get_targets HWLOC_NAME(memattr_get_targets) 413 #define hwloc_memattr_get_initiators HWLOC_NAME(memattr_get_initiators) 414 415 /* cpukinds.h */ 416 417 #define hwloc_cpukinds_get_nr HWLOC_NAME(cpukinds_get_nr) 418 #define hwloc_cpukinds_get_by_cpuset HWLOC_NAME(cpukinds_get_by_cpuset) 419 #define hwloc_cpukinds_get_info HWLOC_NAME(cpukinds_get_info) 420 #define hwloc_cpukinds_register HWLOC_NAME(cpukinds_register) 421 422 /* export.h */ 423 424 #define hwloc_topology_export_xml_flags_e HWLOC_NAME(topology_export_xml_flags_e) 425 #define HWLOC_TOPOLOGY_EXPORT_XML_FLAG_V1 HWLOC_NAME_CAPS(TOPOLOGY_EXPORT_XML_FLAG_V1) 426 #define hwloc_topology_export_xml HWLOC_NAME(topology_export_xml) 427 #define hwloc_topology_export_xmlbuffer HWLOC_NAME(topology_export_xmlbuffer) 428 #define hwloc_free_xmlbuffer HWLOC_NAME(free_xmlbuffer) 429 #define hwloc_topology_set_userdata_export_callback HWLOC_NAME(topology_set_userdata_export_callback) 430 #define hwloc_export_obj_userdata HWLOC_NAME(export_obj_userdata) 431 #define hwloc_export_obj_userdata_base64 HWLOC_NAME(export_obj_userdata_base64) 432 #define hwloc_topology_set_userdata_import_callback HWLOC_NAME(topology_set_userdata_import_callback) 433 434 #define hwloc_topology_export_synthetic_flags_e HWLOC_NAME(topology_export_synthetic_flags_e) 435 #define HWLOC_TOPOLOGY_EXPORT_SYNTHETIC_FLAG_NO_EXTENDED_TYPES HWLOC_NAME_CAPS(TOPOLOGY_EXPORT_SYNTHETIC_FLAG_NO_EXTENDED_TYPES) 436 #define HWLOC_TOPOLOGY_EXPORT_SYNTHETIC_FLAG_NO_ATTRS HWLOC_NAME_CAPS(TOPOLOGY_EXPORT_SYNTHETIC_FLAG_NO_ATTRS) 437 #define HWLOC_TOPOLOGY_EXPORT_SYNTHETIC_FLAG_V1 HWLOC_NAME_CAPS(TOPOLOGY_EXPORT_SYNTHETIC_FLAG_V1) 438 #define HWLOC_TOPOLOGY_EXPORT_SYNTHETIC_FLAG_IGNORE_MEMORY HWLOC_NAME_CAPS(TOPOLOGY_EXPORT_SYNTHETIC_FLAG_IGNORE_MEMORY) 439 #define hwloc_topology_export_synthetic HWLOC_NAME(topology_export_synthetic) 440 441 /* distances.h */ 442 443 #define hwloc_distances_s HWLOC_NAME(distances_s) 444 445 #define hwloc_distances_kind_e HWLOC_NAME(distances_kind_e) 446 #define HWLOC_DISTANCES_KIND_FROM_OS HWLOC_NAME_CAPS(DISTANCES_KIND_FROM_OS) 447 #define HWLOC_DISTANCES_KIND_FROM_USER HWLOC_NAME_CAPS(DISTANCES_KIND_FROM_USER) 448 #define HWLOC_DISTANCES_KIND_MEANS_LATENCY HWLOC_NAME_CAPS(DISTANCES_KIND_MEANS_LATENCY) 449 #define HWLOC_DISTANCES_KIND_MEANS_BANDWIDTH HWLOC_NAME_CAPS(DISTANCES_KIND_MEANS_BANDWIDTH) 450 #define HWLOC_DISTANCES_KIND_HETEROGENEOUS_TYPES HWLOC_NAME_CAPS(DISTANCES_KIND_HETEROGENEOUS_TYPES) 451 452 #define hwloc_distances_get HWLOC_NAME(distances_get) 453 #define hwloc_distances_get_by_depth HWLOC_NAME(distances_get_by_depth) 454 #define hwloc_distances_get_by_type HWLOC_NAME(distances_get_by_type) 455 #define hwloc_distances_get_by_name HWLOC_NAME(distances_get_by_name) 456 #define hwloc_distances_get_name HWLOC_NAME(distances_get_name) 457 #define hwloc_distances_release HWLOC_NAME(distances_release) 458 #define hwloc_distances_obj_index HWLOC_NAME(distances_obj_index) 459 #define hwloc_distances_obj_pair_values HWLOC_NAME(distances_pair_values) 460 461 #define hwloc_distances_transform_e HWLOC_NAME(distances_transform_e) 462 #define HWLOC_DISTANCES_TRANSFORM_REMOVE_NULL HWLOC_NAME_CAPS(DISTANCES_TRANSFORM_REMOVE_NULL) 463 #define HWLOC_DISTANCES_TRANSFORM_LINKS HWLOC_NAME_CAPS(DISTANCES_TRANSFORM_LINKS) 464 #define HWLOC_DISTANCES_TRANSFORM_MERGE_SWITCH_PORTS HWLOC_NAME_CAPS(DISTANCES_TRANSFORM_MERGE_SWITCH_PORTS) 465 #define HWLOC_DISTANCES_TRANSFORM_TRANSITIVE_CLOSURE HWLOC_NAME_CAPS(DISTANCES_TRANSFORM_TRANSITIVE_CLOSURE) 466 #define hwloc_distances_transform HWLOC_NAME(distances_transform) 467 468 #define hwloc_distances_add_flag_e HWLOC_NAME(distances_add_flag_e) 469 #define HWLOC_DISTANCES_ADD_FLAG_GROUP HWLOC_NAME_CAPS(DISTANCES_ADD_FLAG_GROUP) 470 #define HWLOC_DISTANCES_ADD_FLAG_GROUP_INACCURATE HWLOC_NAME_CAPS(DISTANCES_ADD_FLAG_GROUP_INACCURATE) 471 472 #define hwloc_distances_add_handle_t HWLOC_NAME(distances_add_handle_t) 473 #define hwloc_distances_add_create HWLOC_NAME(distances_add_create) 474 #define hwloc_distances_add_values HWLOC_NAME(distances_add_values) 475 #define hwloc_distances_add_commit HWLOC_NAME(distances_add_commit) 476 477 #define hwloc_distances_remove HWLOC_NAME(distances_remove) 478 #define hwloc_distances_remove_by_depth HWLOC_NAME(distances_remove_by_depth) 479 #define hwloc_distances_remove_by_type HWLOC_NAME(distances_remove_by_type) 480 #define hwloc_distances_release_remove HWLOC_NAME(distances_release_remove) 481 482 /* diff.h */ 483 484 #define hwloc_topology_diff_obj_attr_type_e HWLOC_NAME(topology_diff_obj_attr_type_e) 485 #define hwloc_topology_diff_obj_attr_type_t HWLOC_NAME(topology_diff_obj_attr_type_t) 486 #define HWLOC_TOPOLOGY_DIFF_OBJ_ATTR_SIZE HWLOC_NAME_CAPS(TOPOLOGY_DIFF_OBJ_ATTR_SIZE) 487 #define HWLOC_TOPOLOGY_DIFF_OBJ_ATTR_NAME HWLOC_NAME_CAPS(TOPOLOGY_DIFF_OBJ_ATTR_NAME) 488 #define HWLOC_TOPOLOGY_DIFF_OBJ_ATTR_INFO HWLOC_NAME_CAPS(TOPOLOGY_DIFF_OBJ_ATTR_INFO) 489 #define hwloc_topology_diff_obj_attr_u HWLOC_NAME(topology_diff_obj_attr_u) 490 #define hwloc_topology_diff_obj_attr_generic_s HWLOC_NAME(topology_diff_obj_attr_generic_s) 491 #define hwloc_topology_diff_obj_attr_uint64_s HWLOC_NAME(topology_diff_obj_attr_uint64_s) 492 #define hwloc_topology_diff_obj_attr_string_s HWLOC_NAME(topology_diff_obj_attr_string_s) 493 #define hwloc_topology_diff_type_e HWLOC_NAME(topology_diff_type_e) 494 #define hwloc_topology_diff_type_t HWLOC_NAME(topology_diff_type_t) 495 #define HWLOC_TOPOLOGY_DIFF_OBJ_ATTR HWLOC_NAME_CAPS(TOPOLOGY_DIFF_OBJ_ATTR) 496 #define HWLOC_TOPOLOGY_DIFF_TOO_COMPLEX HWLOC_NAME_CAPS(TOPOLOGY_DIFF_TOO_COMPLEX) 497 #define hwloc_topology_diff_u HWLOC_NAME(topology_diff_u) 498 #define hwloc_topology_diff_t HWLOC_NAME(topology_diff_t) 499 #define hwloc_topology_diff_generic_s HWLOC_NAME(topology_diff_generic_s) 500 #define hwloc_topology_diff_obj_attr_s HWLOC_NAME(topology_diff_obj_attr_s) 501 #define hwloc_topology_diff_too_complex_s HWLOC_NAME(topology_diff_too_complex_s) 502 #define hwloc_topology_diff_build HWLOC_NAME(topology_diff_build) 503 #define hwloc_topology_diff_apply_flags_e HWLOC_NAME(topology_diff_apply_flags_e) 504 #define HWLOC_TOPOLOGY_DIFF_APPLY_REVERSE HWLOC_NAME_CAPS(TOPOLOGY_DIFF_APPLY_REVERSE) 505 #define hwloc_topology_diff_apply HWLOC_NAME(topology_diff_apply) 506 #define hwloc_topology_diff_destroy HWLOC_NAME(topology_diff_destroy) 507 #define hwloc_topology_diff_load_xml HWLOC_NAME(topology_diff_load_xml) 508 #define hwloc_topology_diff_export_xml HWLOC_NAME(topology_diff_export_xml) 509 #define hwloc_topology_diff_load_xmlbuffer HWLOC_NAME(topology_diff_load_xmlbuffer) 510 #define hwloc_topology_diff_export_xmlbuffer HWLOC_NAME(topology_diff_export_xmlbuffer) 511 512 /* shmem.h */ 513 514 #define hwloc_shmem_topology_get_length HWLOC_NAME(shmem_topology_get_length) 515 #define hwloc_shmem_topology_write HWLOC_NAME(shmem_topology_write) 516 #define hwloc_shmem_topology_adopt HWLOC_NAME(shmem_topology_adopt) 517 518 /* glibc-sched.h */ 519 520 #define hwloc_cpuset_to_glibc_sched_affinity HWLOC_NAME(cpuset_to_glibc_sched_affinity) 521 #define hwloc_cpuset_from_glibc_sched_affinity HWLOC_NAME(cpuset_from_glibc_sched_affinity) 522 523 /* linux-libnuma.h */ 524 525 #define hwloc_cpuset_to_linux_libnuma_ulongs HWLOC_NAME(cpuset_to_linux_libnuma_ulongs) 526 #define hwloc_nodeset_to_linux_libnuma_ulongs HWLOC_NAME(nodeset_to_linux_libnuma_ulongs) 527 #define hwloc_cpuset_from_linux_libnuma_ulongs HWLOC_NAME(cpuset_from_linux_libnuma_ulongs) 528 #define hwloc_nodeset_from_linux_libnuma_ulongs HWLOC_NAME(nodeset_from_linux_libnuma_ulongs) 529 #define hwloc_cpuset_to_linux_libnuma_bitmask HWLOC_NAME(cpuset_to_linux_libnuma_bitmask) 530 #define hwloc_nodeset_to_linux_libnuma_bitmask HWLOC_NAME(nodeset_to_linux_libnuma_bitmask) 531 #define hwloc_cpuset_from_linux_libnuma_bitmask HWLOC_NAME(cpuset_from_linux_libnuma_bitmask) 532 #define hwloc_nodeset_from_linux_libnuma_bitmask HWLOC_NAME(nodeset_from_linux_libnuma_bitmask) 533 534 /* linux.h */ 535 536 #define hwloc_linux_set_tid_cpubind HWLOC_NAME(linux_set_tid_cpubind) 537 #define hwloc_linux_get_tid_cpubind HWLOC_NAME(linux_get_tid_cpubind) 538 #define hwloc_linux_get_tid_last_cpu_location HWLOC_NAME(linux_get_tid_last_cpu_location) 539 #define hwloc_linux_read_path_as_cpumask HWLOC_NAME(linux_read_file_cpumask) 540 541 /* windows.h */ 542 543 #define hwloc_windows_get_nr_processor_groups HWLOC_NAME(windows_get_nr_processor_groups) 544 #define hwloc_windows_get_processor_group_cpuset HWLOC_NAME(windows_get_processor_group_cpuset) 545 546 /* openfabrics-verbs.h */ 547 548 #define hwloc_ibv_get_device_cpuset HWLOC_NAME(ibv_get_device_cpuset) 549 #define hwloc_ibv_get_device_osdev HWLOC_NAME(ibv_get_device_osdev) 550 #define hwloc_ibv_get_device_osdev_by_name HWLOC_NAME(ibv_get_device_osdev_by_name) 551 552 /* opencl.h */ 553 554 #define hwloc_cl_device_topology_amd HWLOC_NAME(cl_device_topology_amd) 555 #define hwloc_opencl_get_device_pci_busid HWLOC_NAME(opencl_get_device_pci_ids) 556 #define hwloc_opencl_get_device_cpuset HWLOC_NAME(opencl_get_device_cpuset) 557 #define hwloc_opencl_get_device_osdev HWLOC_NAME(opencl_get_device_osdev) 558 #define hwloc_opencl_get_device_osdev_by_index HWLOC_NAME(opencl_get_device_osdev_by_index) 559 560 /* cuda.h */ 561 562 #define hwloc_cuda_get_device_pci_ids HWLOC_NAME(cuda_get_device_pci_ids) 563 #define hwloc_cuda_get_device_cpuset HWLOC_NAME(cuda_get_device_cpuset) 564 #define hwloc_cuda_get_device_pcidev HWLOC_NAME(cuda_get_device_pcidev) 565 #define hwloc_cuda_get_device_osdev HWLOC_NAME(cuda_get_device_osdev) 566 #define hwloc_cuda_get_device_osdev_by_index HWLOC_NAME(cuda_get_device_osdev_by_index) 567 568 /* cudart.h */ 569 570 #define hwloc_cudart_get_device_pci_ids HWLOC_NAME(cudart_get_device_pci_ids) 571 #define hwloc_cudart_get_device_cpuset HWLOC_NAME(cudart_get_device_cpuset) 572 #define hwloc_cudart_get_device_pcidev HWLOC_NAME(cudart_get_device_pcidev) 573 #define hwloc_cudart_get_device_osdev_by_index HWLOC_NAME(cudart_get_device_osdev_by_index) 574 575 /* nvml.h */ 576 577 #define hwloc_nvml_get_device_cpuset HWLOC_NAME(nvml_get_device_cpuset) 578 #define hwloc_nvml_get_device_osdev HWLOC_NAME(nvml_get_device_osdev) 579 #define hwloc_nvml_get_device_osdev_by_index HWLOC_NAME(nvml_get_device_osdev_by_index) 580 581 /* rsmi.h */ 582 583 #define hwloc_rsmi_get_device_cpuset HWLOC_NAME(rsmi_get_device_cpuset) 584 #define hwloc_rsmi_get_device_osdev HWLOC_NAME(rsmi_get_device_osdev) 585 #define hwloc_rsmi_get_device_osdev_by_index HWLOC_NAME(rsmi_get_device_osdev_by_index) 586 587 /* levelzero.h */ 588 589 #define hwloc_levelzero_get_device_cpuset HWLOC_NAME(levelzero_get_device_cpuset) 590 #define hwloc_levelzero_get_device_osdev HWLOC_NAME(levelzero_get_device_osdev) 591 592 /* gl.h */ 593 594 #define hwloc_gl_get_display_osdev_by_port_device HWLOC_NAME(gl_get_display_osdev_by_port_device) 595 #define hwloc_gl_get_display_osdev_by_name HWLOC_NAME(gl_get_display_osdev_by_name) 596 #define hwloc_gl_get_display_by_osdev HWLOC_NAME(gl_get_display_by_osdev) 597 598 /* hwloc/plugins.h */ 599 600 #define hwloc_disc_phase_e HWLOC_NAME(disc_phase_e) 601 #define HWLOC_DISC_PHASE_GLOBAL HWLOC_NAME_CAPS(DISC_PHASE_GLOBAL) 602 #define HWLOC_DISC_PHASE_CPU HWLOC_NAME_CAPS(DISC_PHASE_CPU) 603 #define HWLOC_DISC_PHASE_MEMORY HWLOC_NAME_CAPS(DISC_PHASE_MEMORY) 604 #define HWLOC_DISC_PHASE_PCI HWLOC_NAME_CAPS(DISC_PHASE_PCI) 605 #define HWLOC_DISC_PHASE_IO HWLOC_NAME_CAPS(DISC_PHASE_IO) 606 #define HWLOC_DISC_PHASE_MISC HWLOC_NAME_CAPS(DISC_PHASE_MISC) 607 #define HWLOC_DISC_PHASE_ANNOTATE HWLOC_NAME_CAPS(DISC_PHASE_ANNOTATE) 608 #define HWLOC_DISC_PHASE_TWEAK HWLOC_NAME_CAPS(DISC_PHASE_TWEAK) 609 #define hwloc_disc_phase_t HWLOC_NAME(disc_phase_t) 610 #define hwloc_disc_component HWLOC_NAME(disc_component) 611 612 #define hwloc_disc_status_flag_e HWLOC_NAME(disc_status_flag_e) 613 #define HWLOC_DISC_STATUS_FLAG_GOT_ALLOWED_RESOURCES HWLOC_NAME_CAPS(DISC_STATUS_FLAG_GOT_ALLOWED_RESOURCES) 614 #define hwloc_disc_status HWLOC_NAME(disc_status) 615 616 #define hwloc_backend HWLOC_NAME(backend) 617 618 #define hwloc_backend_alloc HWLOC_NAME(backend_alloc) 619 #define hwloc_backend_enable HWLOC_NAME(backend_enable) 620 621 #define hwloc_component_type_e HWLOC_NAME(component_type_e) 622 #define HWLOC_COMPONENT_TYPE_DISC HWLOC_NAME_CAPS(COMPONENT_TYPE_DISC) 623 #define HWLOC_COMPONENT_TYPE_XML HWLOC_NAME_CAPS(COMPONENT_TYPE_XML) 624 #define hwloc_component_type_t HWLOC_NAME(component_type_t) 625 #define hwloc_component HWLOC_NAME(component) 626 627 #define hwloc_plugin_check_namespace HWLOC_NAME(plugin_check_namespace) 628 629 #define hwloc_hide_errors HWLOC_NAME(hide_errors) 630 #define hwloc__insert_object_by_cpuset HWLOC_NAME(_insert_object_by_cpuset) 631 #define hwloc_insert_object_by_parent HWLOC_NAME(insert_object_by_parent) 632 #define hwloc_alloc_setup_object HWLOC_NAME(alloc_setup_object) 633 #define hwloc_obj_add_children_sets HWLOC_NAME(add_children_sets) 634 #define hwloc_topology_reconnect HWLOC_NAME(topology_reconnect) 635 636 #define hwloc_filter_check_pcidev_subtype_important HWLOC_NAME(filter_check_pcidev_subtype_important) 637 #define hwloc_filter_check_osdev_subtype_important HWLOC_NAME(filter_check_osdev_subtype_important) 638 #define hwloc_filter_check_keep_object_type HWLOC_NAME(filter_check_keep_object_type) 639 #define hwloc_filter_check_keep_object HWLOC_NAME(filter_check_keep_object) 640 641 #define hwloc_pcidisc_find_cap HWLOC_NAME(pcidisc_find_cap) 642 #define hwloc_pcidisc_find_linkspeed HWLOC_NAME(pcidisc_find_linkspeed) 643 #define hwloc_pcidisc_check_bridge_type HWLOC_NAME(pcidisc_check_bridge_type) 644 #define hwloc_pcidisc_find_bridge_buses HWLOC_NAME(pcidisc_find_bridge_buses) 645 #define hwloc_pcidisc_tree_insert_by_busid HWLOC_NAME(pcidisc_tree_insert_by_busid) 646 #define hwloc_pcidisc_tree_attach HWLOC_NAME(pcidisc_tree_attach) 647 648 #define hwloc_pci_find_by_busid HWLOC_NAME(pcidisc_find_by_busid) 649 #define hwloc_pci_find_parent_by_busid HWLOC_NAME(pcidisc_find_busid_parent) 650 651 #define hwloc_backend_distances_add_handle_t HWLOC_NAME(backend_distances_add_handle_t) 652 #define hwloc_backend_distances_add_create HWLOC_NAME(backend_distances_add_create) 653 #define hwloc_backend_distances_add_values HWLOC_NAME(backend_distances_add_values) 654 #define hwloc_backend_distances_add_commit HWLOC_NAME(backend_distances_add_commit) 655 656 /* hwloc/deprecated.h */ 657 658 #define hwloc_distances_add HWLOC_NAME(distances_add) 659 660 #define hwloc_topology_insert_misc_object_by_parent HWLOC_NAME(topology_insert_misc_object_by_parent) 661 #define hwloc_obj_cpuset_snprintf HWLOC_NAME(obj_cpuset_snprintf) 662 #define hwloc_obj_type_sscanf HWLOC_NAME(obj_type_sscanf) 663 664 #define hwloc_set_membind_nodeset HWLOC_NAME(set_membind_nodeset) 665 #define hwloc_get_membind_nodeset HWLOC_NAME(get_membind_nodeset) 666 #define hwloc_set_proc_membind_nodeset HWLOC_NAME(set_proc_membind_nodeset) 667 #define hwloc_get_proc_membind_nodeset HWLOC_NAME(get_proc_membind_nodeset) 668 #define hwloc_set_area_membind_nodeset HWLOC_NAME(set_area_membind_nodeset) 669 #define hwloc_get_area_membind_nodeset HWLOC_NAME(get_area_membind_nodeset) 670 #define hwloc_alloc_membind_nodeset HWLOC_NAME(alloc_membind_nodeset) 671 672 #define hwloc_cpuset_to_nodeset_strict HWLOC_NAME(cpuset_to_nodeset_strict) 673 #define hwloc_cpuset_from_nodeset_strict HWLOC_NAME(cpuset_from_nodeset_strict) 674 675 /* private/debug.h */ 676 677 #define hwloc_debug_enabled HWLOC_NAME(debug_enabled) 678 #define hwloc_debug HWLOC_NAME(debug) 679 680 /* private/misc.h */ 681 682 #ifndef HWLOC_HAVE_CORRECT_SNPRINTF 683 #define hwloc_snprintf HWLOC_NAME(snprintf) 684 #endif 685 #define hwloc_ffsl_manual HWLOC_NAME(ffsl_manual) 686 #define hwloc_ffs32 HWLOC_NAME(ffs32) 687 #define hwloc_ffsl_from_ffs32 HWLOC_NAME(ffsl_from_ffs32) 688 #define hwloc_flsl_manual HWLOC_NAME(flsl_manual) 689 #define hwloc_fls32 HWLOC_NAME(fls32) 690 #define hwloc_flsl_from_fls32 HWLOC_NAME(flsl_from_fls32) 691 #define hwloc_weight_long HWLOC_NAME(weight_long) 692 #define hwloc_strncasecmp HWLOC_NAME(strncasecmp) 693 694 #define hwloc_bitmap_compare_inclusion HWLOC_NAME(bitmap_compare_inclusion) 695 696 #define hwloc_pci_class_string HWLOC_NAME(pci_class_string) 697 #define hwloc_linux_pci_link_speed_from_string HWLOC_NAME(linux_pci_link_speed_from_string) 698 699 #define hwloc_cache_type_by_depth_type HWLOC_NAME(cache_type_by_depth_type) 700 #define hwloc__obj_type_is_normal HWLOC_NAME(_obj_type_is_normal) 701 #define hwloc__obj_type_is_memory HWLOC_NAME(_obj_type_is_memory) 702 #define hwloc__obj_type_is_io HWLOC_NAME(_obj_type_is_io) 703 #define hwloc__obj_type_is_special HWLOC_NAME(_obj_type_is_special) 704 705 #define hwloc__obj_type_is_cache HWLOC_NAME(_obj_type_is_cache) 706 #define hwloc__obj_type_is_dcache HWLOC_NAME(_obj_type_is_dcache) 707 #define hwloc__obj_type_is_icache HWLOC_NAME(_obj_type_is_icache) 708 709 /* private/cpuid-x86.h */ 710 711 #define hwloc_have_x86_cpuid HWLOC_NAME(have_x86_cpuid) 712 #define hwloc_x86_cpuid HWLOC_NAME(x86_cpuid) 713 714 /* private/xml.h */ 715 716 #define hwloc__xml_verbose HWLOC_NAME(_xml_verbose) 717 718 #define hwloc__xml_import_state_s HWLOC_NAME(_xml_import_state_s) 719 #define hwloc__xml_import_state_t HWLOC_NAME(_xml_import_state_t) 720 #define hwloc__xml_import_diff HWLOC_NAME(_xml_import_diff) 721 #define hwloc_xml_backend_data_s HWLOC_NAME(xml_backend_data_s) 722 #define hwloc__xml_export_state_s HWLOC_NAME(_xml_export_state_s) 723 #define hwloc__xml_export_state_t HWLOC_NAME(_xml_export_state_t) 724 #define hwloc__xml_export_data_s HWLOC_NAME(_xml_export_data_s) 725 #define hwloc__xml_export_topology HWLOC_NAME(_xml_export_topology) 726 #define hwloc__xml_export_diff HWLOC_NAME(_xml_export_diff) 727 728 #define hwloc_xml_callbacks HWLOC_NAME(xml_callbacks) 729 #define hwloc_xml_component HWLOC_NAME(xml_component) 730 #define hwloc_xml_callbacks_register HWLOC_NAME(xml_callbacks_register) 731 #define hwloc_xml_callbacks_reset HWLOC_NAME(xml_callbacks_reset) 732 733 #define hwloc__xml_imported_v1distances_s HWLOC_NAME(_xml_imported_v1distances_s) 734 735 /* private/components.h */ 736 737 #define hwloc_disc_component_force_enable HWLOC_NAME(disc_component_force_enable) 738 #define hwloc_disc_components_enable_others HWLOC_NAME(disc_components_instantiate_others) 739 740 #define hwloc_backends_is_thissystem HWLOC_NAME(backends_is_thissystem) 741 #define hwloc_backends_find_callbacks HWLOC_NAME(backends_find_callbacks) 742 743 #define hwloc_topology_components_init HWLOC_NAME(topology_components_init) 744 #define hwloc_backends_disable_all HWLOC_NAME(backends_disable_all) 745 #define hwloc_topology_components_fini HWLOC_NAME(topology_components_fini) 746 747 #define hwloc_components_init HWLOC_NAME(components_init) 748 #define hwloc_components_fini HWLOC_NAME(components_fini) 749 750 /* private/internal-private.h */ 751 752 #define hwloc_xml_component HWLOC_NAME(xml_component) 753 #define hwloc_synthetic_component HWLOC_NAME(synthetic_component) 754 755 #define hwloc_aix_component HWLOC_NAME(aix_component) 756 #define hwloc_bgq_component HWLOC_NAME(bgq_component) 757 #define hwloc_darwin_component HWLOC_NAME(darwin_component) 758 #define hwloc_dragonfly_component HWLOC_NAME(dragonfly_component) 759 #define hwloc_freebsd_component HWLOC_NAME(freebsd_component) 760 #define hwloc_hpux_component HWLOC_NAME(hpux_component) 761 #define hwloc_linux_component HWLOC_NAME(linux_component) 762 #define hwloc_netbsd_component HWLOC_NAME(netbsd_component) 763 #define hwloc_noos_component HWLOC_NAME(noos_component) 764 #define hwloc_solaris_component HWLOC_NAME(solaris_component) 765 #define hwloc_windows_component HWLOC_NAME(windows_component) 766 #define hwloc_x86_component HWLOC_NAME(x86_component) 767 768 #define hwloc_cuda_component HWLOC_NAME(cuda_component) 769 #define hwloc_gl_component HWLOC_NAME(gl_component) 770 #define hwloc_levelzero_component HWLOC_NAME(levelzero_component) 771 #define hwloc_nvml_component HWLOC_NAME(nvml_component) 772 #define hwloc_rsmi_component HWLOC_NAME(rsmi_component) 773 #define hwloc_opencl_component HWLOC_NAME(opencl_component) 774 #define hwloc_pci_component HWLOC_NAME(pci_component) 775 776 #define hwloc_xml_libxml_component HWLOC_NAME(xml_libxml_component) 777 #define hwloc_xml_nolibxml_component HWLOC_NAME(xml_nolibxml_component) 778 779 /* private/private.h */ 780 781 #define hwloc_internal_location_s HWLOC_NAME(internal_location_s) 782 783 #define hwloc_special_level_s HWLOC_NAME(special_level_s) 784 785 #define hwloc_pci_forced_locality_s HWLOC_NAME(pci_forced_locality_s) 786 #define hwloc_pci_locality_s HWLOC_NAME(pci_locality_s) 787 788 #define hwloc_topology_forced_component_s HWLOC_NAME(topology_forced_component) 789 790 #define hwloc_alloc_root_sets HWLOC_NAME(alloc_root_sets) 791 #define hwloc_setup_pu_level HWLOC_NAME(setup_pu_level) 792 #define hwloc_get_sysctlbyname HWLOC_NAME(get_sysctlbyname) 793 #define hwloc_get_sysctl HWLOC_NAME(get_sysctl) 794 #define hwloc_fallback_nbprocessors HWLOC_NAME(fallback_nbprocessors) 795 #define hwloc_fallback_memsize HWLOC_NAME(fallback_memsize) 796 797 #define hwloc__object_cpusets_compare_first HWLOC_NAME(_object_cpusets_compare_first) 798 #define hwloc__reorder_children HWLOC_NAME(_reorder_children) 799 800 #define hwloc_topology_setup_defaults HWLOC_NAME(topology_setup_defaults) 801 #define hwloc_topology_clear HWLOC_NAME(topology_clear) 802 803 #define hwloc__attach_memory_object HWLOC_NAME(insert_memory_object) 804 805 #define hwloc_get_obj_by_type_and_gp_index HWLOC_NAME(get_obj_by_type_and_gp_index) 806 807 #define hwloc_pci_discovery_init HWLOC_NAME(pci_discovery_init) 808 #define hwloc_pci_discovery_prepare HWLOC_NAME(pci_discovery_prepare) 809 #define hwloc_pci_discovery_exit HWLOC_NAME(pci_discovery_exit) 810 #define hwloc_find_insert_io_parent_by_complete_cpuset HWLOC_NAME(hwloc_find_insert_io_parent_by_complete_cpuset) 811 812 #define hwloc__add_info HWLOC_NAME(_add_info) 813 #define hwloc__add_info_nodup HWLOC_NAME(_add_info_nodup) 814 #define hwloc__move_infos HWLOC_NAME(_move_infos) 815 #define hwloc__free_infos HWLOC_NAME(_free_infos) 816 #define hwloc__tma_dup_infos HWLOC_NAME(_tma_dup_infos) 817 818 #define hwloc_binding_hooks HWLOC_NAME(binding_hooks) 819 #define hwloc_set_native_binding_hooks HWLOC_NAME(set_native_binding_hooks) 820 #define hwloc_set_binding_hooks HWLOC_NAME(set_binding_hooks) 821 822 #define hwloc_set_linuxfs_hooks HWLOC_NAME(set_linuxfs_hooks) 823 #define hwloc_set_bgq_hooks HWLOC_NAME(set_bgq_hooks) 824 #define hwloc_set_solaris_hooks HWLOC_NAME(set_solaris_hooks) 825 #define hwloc_set_aix_hooks HWLOC_NAME(set_aix_hooks) 826 #define hwloc_set_windows_hooks HWLOC_NAME(set_windows_hooks) 827 #define hwloc_set_darwin_hooks HWLOC_NAME(set_darwin_hooks) 828 #define hwloc_set_dragonfly_hooks HWLOC_NAME(set_dragonfly_hooks) 829 #define hwloc_set_freebsd_hooks HWLOC_NAME(set_freebsd_hooks) 830 #define hwloc_set_netbsd_hooks HWLOC_NAME(set_netbsd_hooks) 831 #define hwloc_set_hpux_hooks HWLOC_NAME(set_hpux_hooks) 832 833 #define hwloc_look_hardwired_fujitsu_k HWLOC_NAME(look_hardwired_fujitsu_k) 834 #define hwloc_look_hardwired_fujitsu_fx10 HWLOC_NAME(look_hardwired_fujitsu_fx10) 835 #define hwloc_look_hardwired_fujitsu_fx100 HWLOC_NAME(look_hardwired_fujitsu_fx100) 836 837 #define hwloc_add_uname_info HWLOC_NAME(add_uname_info) 838 #define hwloc_free_unlinked_object HWLOC_NAME(free_unlinked_object) 839 #define hwloc_free_object_and_children HWLOC_NAME(free_object_and_children) 840 #define hwloc_free_object_siblings_and_children HWLOC_NAME(free_object_siblings_and_children) 841 842 #define hwloc_alloc_heap HWLOC_NAME(alloc_heap) 843 #define hwloc_alloc_mmap HWLOC_NAME(alloc_mmap) 844 #define hwloc_free_heap HWLOC_NAME(free_heap) 845 #define hwloc_free_mmap HWLOC_NAME(free_mmap) 846 #define hwloc_alloc_or_fail HWLOC_NAME(alloc_or_fail) 847 848 #define hwloc_internal_distances_s HWLOC_NAME(internal_distances_s) 849 #define hwloc_internal_distances_init HWLOC_NAME(internal_distances_init) 850 #define hwloc_internal_distances_prepare HWLOC_NAME(internal_distances_prepare) 851 #define hwloc_internal_distances_dup HWLOC_NAME(internal_distances_dup) 852 #define hwloc_internal_distances_refresh HWLOC_NAME(internal_distances_refresh) 853 #define hwloc_internal_distances_destroy HWLOC_NAME(internal_distances_destroy) 854 #define hwloc_internal_distances_add HWLOC_NAME(internal_distances_add) 855 #define hwloc_internal_distances_add_by_index HWLOC_NAME(internal_distances_add_by_index) 856 #define hwloc_internal_distances_invalidate_cached_objs HWLOC_NAME(hwloc_internal_distances_invalidate_cached_objs) 857 858 #define hwloc_internal_memattr_s HWLOC_NAME(internal_memattr_s) 859 #define hwloc_internal_memattr_target_s HWLOC_NAME(internal_memattr_target_s) 860 #define hwloc_internal_memattr_initiator_s HWLOC_NAME(internal_memattr_initiator_s) 861 #define hwloc_internal_memattrs_init HWLOC_NAME(internal_memattrs_init) 862 #define hwloc_internal_memattrs_prepare HWLOC_NAME(internal_memattrs_prepare) 863 #define hwloc_internal_memattrs_dup HWLOC_NAME(internal_memattrs_dup) 864 #define hwloc_internal_memattrs_destroy HWLOC_NAME(internal_memattrs_destroy) 865 #define hwloc_internal_memattrs_need_refresh HWLOC_NAME(internal_memattrs_need_refresh) 866 #define hwloc_internal_memattrs_refresh HWLOC_NAME(internal_memattrs_refresh) 867 868 #define hwloc_internal_cpukind_s HWLOC_NAME(internal_cpukind_s) 869 #define hwloc_internal_cpukinds_init HWLOC_NAME(internal_cpukinds_init) 870 #define hwloc_internal_cpukinds_destroy HWLOC_NAME(internal_cpukinds_destroy) 871 #define hwloc_internal_cpukinds_dup HWLOC_NAME(internal_cpukinds_dup) 872 #define hwloc_internal_cpukinds_register HWLOC_NAME(internal_cpukinds_register) 873 #define hwloc_internal_cpukinds_rank HWLOC_NAME(internal_cpukinds_rank) 874 #define hwloc_internal_cpukinds_restrict HWLOC_NAME(internal_cpukinds_restrict) 875 876 #define hwloc_encode_to_base64 HWLOC_NAME(encode_to_base64) 877 #define hwloc_decode_from_base64 HWLOC_NAME(decode_from_base64) 878 879 #define hwloc_progname HWLOC_NAME(progname) 880 881 #define hwloc__topology_disadopt HWLOC_NAME(_topology_disadopt) 882 #define hwloc__topology_dup HWLOC_NAME(_topology_dup) 883 884 #define hwloc_tma HWLOC_NAME(tma) 885 #define hwloc_tma_malloc HWLOC_NAME(tma_malloc) 886 #define hwloc_tma_calloc HWLOC_NAME(tma_calloc) 887 #define hwloc_tma_strdup HWLOC_NAME(tma_strdup) 888 #define hwloc_bitmap_tma_dup HWLOC_NAME(bitmap_tma_dup) 889 890 /* private/solaris-chiptype.h */ 891 892 #define hwloc_solaris_chip_info_s HWLOC_NAME(solaris_chip_info_s) 893 #define hwloc_solaris_get_chip_info HWLOC_NAME(solaris_get_chip_info) 894 895 #endif /* HWLOC_SYM_TRANSFORM */ 896 897 898 #ifdef __cplusplus 899 } /* extern "C" */ 900 #endif 901 902 903 #endif /* HWLOC_RENAME_H */ 904