23#include <common/config.h>
28#pragma GCC visibility push(hidden)
33#ifdef STARPU_HAVE_HWLOC
35struct _starpu_hwloc_userdata
38 struct _starpu_worker_list *worker_list;
55 int *current,
int *workers_gpuid,
56 const char *varname,
unsigned nhwgpus,
73#define ALLOC_WORKER_SET ((struct _starpu_worker_set*) -1)
76#define DEVID_PER_WORKER -2
81 int devnum,
int devid,
82 int homogeneous,
int worker_devid,
83 unsigned nworker_per_device,
88extern unsigned _starpu_may_bind_automatically[
STARPU_NARCH];
95 unsigned *preferred_binding,
unsigned npreferred);
103#ifdef STARPU_HAVE_HWLOC
126int starpu_memory_nodes_numa_hwloclogid_to_id(
int logid);
129int _starpu_get_logical_numa_node_worker(
unsigned workerid);
134#ifdef STARPU_HAVE_HWLOC
139#define STARPU_NOWORKERID -1
140#define STARPU_ACTIVETHREAD -2
141#define STARPU_NONACTIVETHREAD -2
154int starpu_memory_nodes_numa_id_to_hwloclogid(
unsigned id);
161#pragma GCC visibility pop
Definition: starpu_driver.h:49
starpu_worker_archtype
Definition: starpu_worker.h:66
unsigned starpu_memory_nodes_get_numa_count(void)
@ STARPU_NARCH
Definition: starpu_worker.h:74
Definition: workers.h:311
Definition: workers.h:441
Definition: workers.h:352
unsigned nhwdevices[STARPU_NARCH]
Definition: workers.h:388
int devid[STARPU_NARCH][STARPU_NMAXDEVS]
Definition: workers.h:404
unsigned ndevices[STARPU_NARCH]
Definition: workers.h:396
Definition: workers.h:339
Definition: workers.h:155
int _starpu_build_topology(struct _starpu_machine_config *config, int no_mp_config)
int _starpu_get_next_devid(struct _starpu_machine_topology *topology, struct _starpu_machine_config *config, enum starpu_worker_archtype arch)
void _starpu_destroy_topology(struct _starpu_machine_config *config)
int _starpu_task_data_get_node_on_worker(struct starpu_task *task, unsigned index, unsigned worker)
void _starpu_destroy_machine_config(struct _starpu_machine_config *config, int no_mp_config)
unsigned _starpu_get_nhyperthreads() STARPU_ATTRIBUTE_VISIBILITY_DEFAULT
unsigned _starpu_topology_get_nhwnumanodes(struct _starpu_machine_config *config)
void _starpu_topology_check_ndevices(int *ndevices, unsigned nhwdevices, int overflow, unsigned max, int reserved, const char *nname, const char *dname, const char *configurename)
unsigned _starpu_get_next_bindid(struct _starpu_machine_config *config, unsigned flags, unsigned *preferred_binding, unsigned npreferred)
int _starpu_task_data_get_node_on_node(struct starpu_task *task, unsigned index, unsigned target_node)
unsigned _starpu_topology_get_numa_core_binding(struct _starpu_machine_config *config, const unsigned *numa_binding, unsigned nnuma, unsigned *binding, unsigned nbinding)
int _starpu_bind_thread_on_cpu(int cpuid, int workerid, const char *name)
unsigned _starpu_topology_get_nnumanodes(struct _starpu_machine_config *config)
void _starpu_topology_filter(hwloc_topology_t topology)
unsigned _starpu_topology_get_nhwpu(struct _starpu_machine_config *config)
hwloc_obj_t _starpu_numa_get_obj(hwloc_obj_t obj)
void _starpu_initialize_workers_deviceid(int *explicit_workers_gpuid, int *current, int *workers_gpuid, const char *varname, unsigned nhwgpus, enum starpu_worker_archtype type)
void _starpu_bind_thread_on_cpus(struct _starpu_combined_worker *combined_worker)
unsigned _starpu_topology_get_nhwcpu(struct _starpu_machine_config *config)