49 #include <hwloc/autogen/config.h>
50 #include <sys/types.h>
58 #include <hwloc/rename.h>
64 #include <hwloc/bitmap.h>
65 #include <hwloc/cpuset.h>
78 #define HWLOC_API_VERSION 0x00010700
84 #define HWLOC_COMPONENT_ABI 2
94 struct hwloc_topology;
939 unsigned *os_index,
float *distances);
1084 void (*export_cb)(
void *reserved, hwloc_topology_t topology, hwloc_obj_t obj));
1111 int hwloc_export_obj_userdata(
void *reserved, hwloc_topology_t topology, hwloc_obj_t obj,
const char *name,
const void *buffer,
size_t length);
1149 void (*import_cb)(hwloc_topology_t topology, hwloc_obj_t obj,
const char *name,
const void *buffer,
size_t length));
1234 int hwloc_topology_restrict(hwloc_topology_t restrict topology, hwloc_const_cpuset_t cpuset,
unsigned long flags);
1354 static inline hwloc_obj_t
1356 static inline hwloc_obj_t
1408 int hwloc_obj_attr_snprintf(
char * restrict
string,
size_t size, hwloc_obj_t obj,
const char * restrict separator,
1432 hwloc_topology_t topology, hwloc_obj_t obj,
1433 const char * restrict indexprefix,
int verbose);
1450 static inline
const char *
1452 static inline
const char *
1588 int hwloc_set_cpubind(hwloc_topology_t topology, hwloc_const_cpuset_t
set,
int flags);
1595 int hwloc_get_cpubind(hwloc_topology_t topology, hwloc_cpuset_t
set,
int flags);
1604 int hwloc_set_proc_cpubind(hwloc_topology_t topology, hwloc_pid_t pid, hwloc_const_cpuset_t
set,
int flags);
1619 #ifdef hwloc_thread_t
1627 int hwloc_set_thread_cpubind(hwloc_topology_t topology, hwloc_thread_t thread, hwloc_const_cpuset_t
set,
int flags);
1630 #ifdef hwloc_thread_t
2137 void *
hwloc_alloc(hwloc_topology_t topology,
size_t len);
2164 int hwloc_free(hwloc_topology_t topology,
void *addr,
size_t len);
2196 int hwloc_custom_insert_topology(hwloc_topology_t newtopology, hwloc_obj_t newparent, hwloc_topology_t oldtopology, hwloc_obj_t oldroot);
2226 #include <hwloc/helper.h>