17 #ifndef __TOPOLOGY_H__
18 #define __TOPOLOGY_H__
23 #include <common/config.h>
29 #ifndef STARPU_SIMGRID
30 #ifdef STARPU_HAVE_HWLOC
32 struct _starpu_hwloc_userdata
35 struct _starpu_worker_list *worker_list;
65 #ifdef STARPU_HAVE_HWLOC
70 #define STARPU_NOWORKERID -1
71 #define STARPU_ACTIVETHREAD -2
72 #define STARPU_NONACTIVETHREAD -2
82 struct _starpu_worker *_starpu_get_worker_from_driver(
struct starpu_driver *d);
84 int starpu_memory_nodes_get_numa_count(
void);
85 int starpu_memory_nodes_numa_id_to_hwloclogid(
unsigned id);
89 int _starpu_task_data_get_node_on_worker(
struct starpu_task *task,
unsigned index,
unsigned worker);
Definition: workers.h:204
Definition: workers.h:359
int workerid
Definition: workers.h:80
int _starpu_build_topology(struct _starpu_machine_config *config, int no_mp_config)
unsigned _starpu_get_nhyperthreads()
void _starpu_destroy_topology(struct _starpu_machine_config *config)
int _starpu_task_data_get_node_on_node(struct starpu_task *task, unsigned index, unsigned target_node)
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)
void _starpu_destroy_machine_config(struct _starpu_machine_config *config)
void _starpu_bind_thread_on_cpus(struct _starpu_combined_worker *combined_worker)
unsigned _starpu_topology_get_nhwcpu(struct _starpu_machine_config *config)