Loading...
Searching...
No Matches
starpu_sched_component.h
Go to the documentation of this file.
/* StarPU --- Runtime system for heterogeneous multicore architectures.
*
* Copyright (C) 2013-2021 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
* Copyright (C) 2013 Simon Archipoff
* Copyright (C) 2017 Arthur Chevalier
*
* StarPU is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or (at
* your option) any later version.
*
* StarPU is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* See the GNU Lesser General Public License in COPYING.LGPL for more details.
*/
#ifndef __STARPU_SCHED_COMPONENT_H__
#define __STARPU_SCHED_COMPONENT_H__
#include <starpu.h>
#ifdef STARPU_HAVE_HWLOC
#include <hwloc.h>
#endif
#ifdef __cplusplus
extern "C"
{
#endif
enum starpu_sched_component_properties
{
STARPU_SCHED_COMPONENT_HOMOGENEOUS = (1<<0),
STARPU_SCHED_COMPONENT_SINGLE_MEMORY_NODE = (1<<1)
};
#define STARPU_SCHED_COMPONENT_IS_HOMOGENEOUS(component) ((component)->properties & STARPU_SCHED_COMPONENT_HOMOGENEOUS)
#define STARPU_SCHED_COMPONENT_IS_SINGLE_MEMORY_NODE(component) ((component)->properties & STARPU_SCHED_COMPONENT_SINGLE_MEMORY_NODE)
struct starpu_sched_component
{
struct starpu_sched_tree *tree;
struct starpu_bitmap *workers;
struct starpu_bitmap *workers_in_ctx;
void *data;
char *name;
unsigned nchildren;
struct starpu_sched_component **children;
unsigned nparents;
struct starpu_sched_component **parents;
void (*add_child)(struct starpu_sched_component *component, struct starpu_sched_component *child);
void (*remove_child)(struct starpu_sched_component *component, struct starpu_sched_component *child);
void (*add_parent)(struct starpu_sched_component *component, struct starpu_sched_component *parent);
void (*remove_parent)(struct starpu_sched_component *component, struct starpu_sched_component *parent);
int (*push_task)(struct starpu_sched_component *, struct starpu_task *);
struct starpu_task *(*pull_task)(struct starpu_sched_component *from, struct starpu_sched_component *to);
int (*can_push)(struct starpu_sched_component *from, struct starpu_sched_component *to);
int (*can_pull)(struct starpu_sched_component *component);
int (*notify)(struct starpu_sched_component* component, int message_ID, void* arg);
double (*estimated_load)(struct starpu_sched_component *component);
double (*estimated_end)(struct starpu_sched_component *component);
void (*deinit_data)(struct starpu_sched_component *component);
void (*notify_change_workers)(struct starpu_sched_component *component);
int properties;
#ifdef STARPU_HAVE_HWLOC
hwloc_obj_t obj;
#else
void *obj;
#endif
};
struct starpu_sched_tree
{
struct starpu_sched_component *root;
struct starpu_bitmap *workers;
unsigned sched_ctx_id;
starpu_pthread_mutex_t lock;
};
void starpu_initialize_prio_center_policy(unsigned sched_ctx_id);
struct starpu_sched_tree *starpu_sched_tree_create(unsigned sched_ctx_id) STARPU_ATTRIBUTE_MALLOC;
void starpu_sched_tree_destroy(struct starpu_sched_tree *tree);
void starpu_sched_tree_deinitialize(unsigned sched_ctx_id);
struct starpu_sched_tree *starpu_sched_tree_get(unsigned sched_ctx_id);
void starpu_sched_tree_update_workers(struct starpu_sched_tree *t);
void starpu_sched_tree_update_workers_in_ctx(struct starpu_sched_tree *t);
int starpu_sched_tree_push_task(struct starpu_task *task);
struct starpu_task *starpu_sched_tree_pop_task(unsigned sched_ctx);
int starpu_sched_component_push_task(struct starpu_sched_component *from, struct starpu_sched_component *to, struct starpu_task *task);
struct starpu_task *starpu_sched_component_pull_task(struct starpu_sched_component *from, struct starpu_sched_component *to);
struct starpu_task* starpu_sched_component_pump_to(struct starpu_sched_component *component, struct starpu_sched_component *to, int* success);
struct starpu_task* starpu_sched_component_pump_downstream(struct starpu_sched_component *component, int* success);
int starpu_sched_component_send_can_push_to_parents(struct starpu_sched_component * component);
void starpu_sched_tree_add_workers(unsigned sched_ctx_id, int *workerids, unsigned nworkers);
void starpu_sched_tree_remove_workers(unsigned sched_ctx_id, int *workerids, unsigned nworkers);
void starpu_sched_component_connect(struct starpu_sched_component *parent, struct starpu_sched_component *child);
typedef struct starpu_sched_component * (*starpu_sched_component_create_t)(struct starpu_sched_tree *tree, void *data);
struct starpu_sched_component *starpu_sched_component_create(struct starpu_sched_tree *tree, const char *name) STARPU_ATTRIBUTE_MALLOC;
void starpu_sched_component_destroy(struct starpu_sched_component *component);
void starpu_sched_component_destroy_rec(struct starpu_sched_component *component);
void starpu_sched_component_add_child(struct starpu_sched_component* component, struct starpu_sched_component * child);
int starpu_sched_component_can_execute_task(struct starpu_sched_component *component, struct starpu_task *task);
int STARPU_WARN_UNUSED_RESULT starpu_sched_component_execute_preds(struct starpu_sched_component *component, struct starpu_task *task, double *length);
double starpu_sched_component_transfer_length(struct starpu_sched_component *component, struct starpu_task *task);
void starpu_sched_component_prefetch_on_node(struct starpu_sched_component *component, struct starpu_task *task);
struct starpu_sched_component *starpu_sched_component_worker_get(unsigned sched_ctx, int workerid);
struct starpu_sched_component *starpu_sched_component_worker_new(unsigned sched_ctx, int workerid);
struct starpu_sched_component *starpu_sched_component_parallel_worker_create(struct starpu_sched_tree *tree, unsigned nworkers, unsigned *workers);
int starpu_sched_component_worker_get_workerid(struct starpu_sched_component *worker_component);
int starpu_sched_component_is_worker(struct starpu_sched_component *component);
int starpu_sched_component_is_simple_worker(struct starpu_sched_component *component);
int starpu_sched_component_is_combined_worker(struct starpu_sched_component *component);
void starpu_sched_component_worker_pre_exec_hook(struct starpu_task *task, unsigned sched_ctx_id);
void starpu_sched_component_worker_post_exec_hook(struct starpu_task *task, unsigned sched_ctx_id);
struct starpu_task * starpu_sched_component_parents_pull_task(struct starpu_sched_component * component, struct starpu_sched_component * to);
int starpu_sched_component_can_push(struct starpu_sched_component * component, struct starpu_sched_component * to);
int starpu_sched_component_can_pull(struct starpu_sched_component * component);
int starpu_sched_component_can_pull_all(struct starpu_sched_component * component);
double starpu_sched_component_estimated_load(struct starpu_sched_component * component);
double starpu_sched_component_estimated_end_min(struct starpu_sched_component * component);
double starpu_sched_component_estimated_end_min_add(struct starpu_sched_component * component, double exp_len);
double starpu_sched_component_estimated_end_average(struct starpu_sched_component * component);
struct starpu_sched_component_fifo_data
{
unsigned ntasks_threshold;
double exp_len_threshold;
int ready;
};
struct starpu_sched_component *starpu_sched_component_fifo_create(struct starpu_sched_tree *tree, struct starpu_sched_component_fifo_data *fifo_data) STARPU_ATTRIBUTE_MALLOC;
int starpu_sched_component_is_fifo(struct starpu_sched_component *component);
struct starpu_sched_component_prio_data
{
unsigned ntasks_threshold;
double exp_len_threshold;
int ready;
};
struct starpu_sched_component *starpu_sched_component_prio_create(struct starpu_sched_tree *tree, struct starpu_sched_component_prio_data *prio_data) STARPU_ATTRIBUTE_MALLOC;
int starpu_sched_component_is_prio(struct starpu_sched_component *component);
struct starpu_sched_component *starpu_sched_component_work_stealing_create(struct starpu_sched_tree *tree, void *arg) STARPU_ATTRIBUTE_MALLOC;
int starpu_sched_component_is_work_stealing(struct starpu_sched_component *component);
int starpu_sched_tree_work_stealing_push_task(struct starpu_task *task);
struct starpu_sched_component *starpu_sched_component_random_create(struct starpu_sched_tree *tree, void *arg) STARPU_ATTRIBUTE_MALLOC;
int starpu_sched_component_is_random(struct starpu_sched_component *);
struct starpu_sched_component *starpu_sched_component_eager_create(struct starpu_sched_tree *tree, void *arg) STARPU_ATTRIBUTE_MALLOC;
int starpu_sched_component_is_eager(struct starpu_sched_component *);
struct starpu_sched_component *starpu_sched_component_eager_prio_create(struct starpu_sched_tree *tree, void *arg) STARPU_ATTRIBUTE_MALLOC;
int starpu_sched_component_is_eager_prio(struct starpu_sched_component *);
struct starpu_sched_component *starpu_sched_component_eager_calibration_create(struct starpu_sched_tree *tree, void *arg) STARPU_ATTRIBUTE_MALLOC;
int starpu_sched_component_is_eager_calibration(struct starpu_sched_component *);
struct starpu_sched_component_mct_data
{
double alpha;
double beta;
double _gamma;
double idle_power;
};
struct starpu_sched_component *starpu_sched_component_mct_create(struct starpu_sched_tree *tree, struct starpu_sched_component_mct_data *mct_data) STARPU_ATTRIBUTE_MALLOC;
int starpu_sched_component_is_mct(struct starpu_sched_component *component);
struct starpu_sched_component *starpu_sched_component_heft_create(struct starpu_sched_tree *tree, struct starpu_sched_component_mct_data *mct_data) STARPU_ATTRIBUTE_MALLOC;
int starpu_sched_component_is_heft(struct starpu_sched_component *component);
struct starpu_sched_component_heteroprio_data
{
struct starpu_sched_component_mct_data *mct;
unsigned batch;
};
struct starpu_sched_component * starpu_sched_component_heteroprio_create(struct starpu_sched_tree *tree, struct starpu_sched_component_heteroprio_data * params) STARPU_ATTRIBUTE_MALLOC;
int starpu_sched_component_is_heteroprio(struct starpu_sched_component *component);
struct starpu_sched_component *starpu_sched_component_best_implementation_create(struct starpu_sched_tree *tree, void *arg) STARPU_ATTRIBUTE_MALLOC;
struct starpu_sched_component_perfmodel_select_data
{
struct starpu_sched_component *calibrator_component;
struct starpu_sched_component *no_perfmodel_component;
struct starpu_sched_component *perfmodel_component;
};
struct starpu_sched_component *starpu_sched_component_perfmodel_select_create(struct starpu_sched_tree *tree, struct starpu_sched_component_perfmodel_select_data *perfmodel_select_data) STARPU_ATTRIBUTE_MALLOC;
int starpu_sched_component_is_perfmodel_select(struct starpu_sched_component *component);
struct starpu_sched_component * starpu_sched_component_stage_create(struct starpu_sched_tree *tree, void *arg) STARPU_ATTRIBUTE_MALLOC;
int starpu_sched_component_is_stage(struct starpu_sched_component *component);
struct starpu_sched_component * starpu_sched_component_userchoice_create(struct starpu_sched_tree *tree, void *arg) STARPU_ATTRIBUTE_MALLOC;
int starpu_sched_component_is_userchoice(struct starpu_sched_component *component);
struct starpu_sched_component_composed_recipe;
struct starpu_sched_component_composed_recipe *starpu_sched_component_composed_recipe_create(void) STARPU_ATTRIBUTE_MALLOC;
struct starpu_sched_component_composed_recipe *starpu_sched_component_composed_recipe_create_singleton(struct starpu_sched_component *(*create_component)(struct starpu_sched_tree *tree, void *arg), void *arg) STARPU_ATTRIBUTE_MALLOC;
void starpu_sched_component_composed_recipe_add(struct starpu_sched_component_composed_recipe *recipe, struct starpu_sched_component *(*create_component)(struct starpu_sched_tree *tree, void *arg), void *arg);
void starpu_sched_component_composed_recipe_destroy(struct starpu_sched_component_composed_recipe *);
struct starpu_sched_component *starpu_sched_component_composed_component_create(struct starpu_sched_tree *tree, struct starpu_sched_component_composed_recipe *recipe) STARPU_ATTRIBUTE_MALLOC;
#ifdef STARPU_HAVE_HWLOC
struct starpu_sched_component_specs
{
struct starpu_sched_component_composed_recipe *hwloc_machine_composed_sched_component;
struct starpu_sched_component_composed_recipe *hwloc_component_composed_sched_component;
struct starpu_sched_component_composed_recipe *hwloc_socket_composed_sched_component;
struct starpu_sched_component_composed_recipe *hwloc_cache_composed_sched_component;
struct starpu_sched_component_composed_recipe *(*worker_composed_sched_component)(enum starpu_worker_archtype archtype);
int mix_heterogeneous_workers;
};
struct starpu_sched_tree *starpu_sched_component_make_scheduler(unsigned sched_ctx_id, struct starpu_sched_component_specs s);
#endif /* STARPU_HAVE_HWLOC */
#define STARPU_SCHED_SIMPLE_DECIDE_MASK (3<<0)
#define STARPU_SCHED_SIMPLE_DECIDE_WORKERS (1<<0)
#define STARPU_SCHED_SIMPLE_DECIDE_MEMNODES (2<<0)
#define STARPU_SCHED_SIMPLE_DECIDE_ARCHS (3<<0)
#define STARPU_SCHED_SIMPLE_DECIDE_ALWAYS (1<<3)
#define STARPU_SCHED_SIMPLE_PERFMODEL (1<<4)
#define STARPU_SCHED_SIMPLE_IMPL (1<<5)
#define STARPU_SCHED_SIMPLE_FIFO_ABOVE (1<<6)
#define STARPU_SCHED_SIMPLE_FIFO_ABOVE_PRIO (1<<7)
#define STARPU_SCHED_SIMPLE_FIFOS_BELOW (1<<8)
#define STARPU_SCHED_SIMPLE_FIFOS_BELOW_PRIO (1<<9)
#define STARPU_SCHED_SIMPLE_FIFOS_BELOW_READY (1<<10)
#define STARPU_SCHED_SIMPLE_WS_BELOW (1<<11)
#define STARPU_SCHED_SIMPLE_COMBINED_WORKERS (1<<12)
#define STARPU_SCHED_SIMPLE_PRE_DECISION (1<<14)
void starpu_sched_component_initialize_simple_scheduler(starpu_sched_component_create_t create_decision_component, void *data, unsigned flags, unsigned sched_ctx_id);
void starpu_sched_component_initialize_simple_schedulers(unsigned sched_ctx_id, unsigned ndecisions, ...);
#define STARPU_COMPONENT_MUTEX_LOCK(m) \
do \
{ \
const int _relaxed_state = starpu_worker_get_relax_state(); \
if (!_relaxed_state) \
starpu_worker_relax_on(); \
STARPU_PTHREAD_MUTEX_LOCK((m)); \
if (!_relaxed_state) \
starpu_worker_relax_off(); \
} \
while(0)
#define STARPU_COMPONENT_MUTEX_TRYLOCK(m) STARPU_PTHREAD_MUTEX_TRYLOCK((m))
#define STARPU_COMPONENT_MUTEX_UNLOCK(m) STARPU_PTHREAD_MUTEX_UNLOCK((m))
#ifdef __cplusplus
}
#endif
#endif /* __STARPU_SCHED_COMPONENT_H__ */
starpu_task::sched_ctx
unsigned sched_ctx
Definition starpu_task.h:1106
starpu_task::workerids
uint32_t * workerids
Definition starpu_task.h:1029
starpu_task
Definition starpu_task.h:567
starpu_sched_component::workers
struct starpu_bitmap * workers
Definition starpu_sched_component.h:72
starpu_sched_component::data
void * data
Definition starpu_sched_component.h:81
starpu_sched_component::notify_change_workers
void(* notify_change_workers)(struct starpu_sched_component *component)
Definition starpu_sched_component.h:163
starpu_sched_component::add_child
void(* add_child)(struct starpu_sched_component *component, struct starpu_sched_component *child)
Definition starpu_sched_component.h:93
starpu_sched_component::deinit_data
void(* deinit_data)(struct starpu_sched_component *component)
Definition starpu_sched_component.h:158
starpu_sched_component::workers_in_ctx
struct starpu_bitmap * workers_in_ctx
Definition starpu_sched_component.h:79
starpu_sched_component::tree
struct starpu_sched_tree * tree
Definition starpu_sched_component.h:70
starpu_sched_component::can_pull
int(* can_pull)(struct starpu_sched_component *component)
Definition starpu_sched_component.h:139
starpu_sched_component::parents
struct starpu_sched_component ** parents
Definition starpu_sched_component.h:90
starpu_sched_component_specs::hwloc_cache_composed_sched_component
struct starpu_sched_component_composed_recipe * hwloc_cache_composed_sched_component
Definition starpu_sched_component.h:688
starpu_sched_tree::root
struct starpu_sched_component * root
Definition starpu_sched_component.h:187
starpu_sched_component_specs::mix_heterogeneous_workers
int mix_heterogeneous_workers
Definition starpu_sched_component.h:701
starpu_sched_tree::lock
starpu_pthread_mutex_t lock
Definition starpu_sched_component.h:200
starpu_sched_component::children
struct starpu_sched_component ** children
Definition starpu_sched_component.h:86
starpu_sched_component::remove_child
void(* remove_child)(struct starpu_sched_component *component, struct starpu_sched_component *child)
Definition starpu_sched_component.h:95
starpu_sched_component_specs::hwloc_socket_composed_sched_component
struct starpu_sched_component_composed_recipe * hwloc_socket_composed_sched_component
Definition starpu_sched_component.h:684
starpu_sched_component::estimated_end
double(* estimated_end)(struct starpu_sched_component *component)
Definition starpu_sched_component.h:153
starpu_sched_tree::sched_ctx_id
unsigned sched_ctx_id
Definition starpu_sched_component.h:195
starpu_sched_component::estimated_load
double(* estimated_load)(struct starpu_sched_component *component)
Definition starpu_sched_component.h:148
starpu_sched_component::nchildren
unsigned nchildren
Definition starpu_sched_component.h:84
starpu_sched_component::push_task
int(* push_task)(struct starpu_sched_component *, struct starpu_task *)
Definition starpu_sched_component.h:109
starpu_sched_component::nparents
unsigned nparents
Definition starpu_sched_component.h:88
starpu_sched_tree::workers
struct starpu_bitmap * workers
Definition starpu_sched_component.h:191
starpu_sched_component_specs::hwloc_machine_composed_sched_component
struct starpu_sched_component_composed_recipe * hwloc_machine_composed_sched_component
Definition starpu_sched_component.h:676
starpu_sched_component::can_push
int(* can_push)(struct starpu_sched_component *from, struct starpu_sched_component *to)
Definition starpu_sched_component.h:127
starpu_sched_component::obj
hwloc_obj_t obj
Definition starpu_sched_component.h:173
starpu_sched_component_specs::hwloc_component_composed_sched_component
struct starpu_sched_component_composed_recipe * hwloc_component_composed_sched_component
Definition starpu_sched_component.h:680
starpu_sched_component_composed_recipe_create_singleton
struct starpu_sched_component_composed_recipe * starpu_sched_component_composed_recipe_create_singleton(struct starpu_sched_component *(*create_component)(struct starpu_sched_tree *tree, void *arg), void *arg) STARPU_ATTRIBUTE_MALLOC
starpu_sched_component_fifo_create
struct starpu_sched_component * starpu_sched_component_fifo_create(struct starpu_sched_tree *tree, struct starpu_sched_component_fifo_data *fifo_data) STARPU_ATTRIBUTE_MALLOC
starpu_sched_component_transfer_length
double starpu_sched_component_transfer_length(struct starpu_sched_component *component, struct starpu_task *task)
starpu_sched_component_estimated_end_average
double starpu_sched_component_estimated_end_average(struct starpu_sched_component *component)
starpu_sched_component_execute_preds
int STARPU_WARN_UNUSED_RESULT starpu_sched_component_execute_preds(struct starpu_sched_component *component, struct starpu_task *task, double *length)
starpu_sched_component_worker_get
struct starpu_sched_component * starpu_sched_component_worker_get(unsigned sched_ctx, int workerid)
starpu_sched_component_destroy
void starpu_sched_component_destroy(struct starpu_sched_component *component)
starpu_sched_component_worker_get_workerid
int starpu_sched_component_worker_get_workerid(struct starpu_sched_component *worker_component)
starpu_sched_component_work_stealing_create
struct starpu_sched_component * starpu_sched_component_work_stealing_create(struct starpu_sched_tree *tree, void *arg) STARPU_ATTRIBUTE_MALLOC
starpu_sched_component_best_implementation_create
struct starpu_sched_component * starpu_sched_component_best_implementation_create(struct starpu_sched_tree *tree, void *arg) STARPU_ATTRIBUTE_MALLOC
starpu_sched_component_pull_task
struct starpu_task * starpu_sched_component_pull_task(struct starpu_sched_component *from, struct starpu_sched_component *to)
starpu_sched_component_composed_recipe_destroy
void starpu_sched_component_composed_recipe_destroy(struct starpu_sched_component_composed_recipe *)
starpu_sched_component_parallel_worker_create
struct starpu_sched_component * starpu_sched_component_parallel_worker_create(struct starpu_sched_tree *tree, unsigned nworkers, unsigned *workers)
starpu_sched_tree_remove_workers
void starpu_sched_tree_remove_workers(unsigned sched_ctx_id, int *workerids, unsigned nworkers)
starpu_sched_component_composed_recipe_create
struct starpu_sched_component_composed_recipe * starpu_sched_component_composed_recipe_create(void) STARPU_ATTRIBUTE_MALLOC
starpu_sched_component_composed_component_create
struct starpu_sched_component * starpu_sched_component_composed_component_create(struct starpu_sched_tree *tree, struct starpu_sched_component_composed_recipe *recipe) STARPU_ATTRIBUTE_MALLOC
starpu_sched_component_can_pull_all
int starpu_sched_component_can_pull_all(struct starpu_sched_component *component)
starpu_sched_component_is_simple_worker
int starpu_sched_component_is_simple_worker(struct starpu_sched_component *component)
starpu_sched_component_initialize_simple_schedulers
void starpu_sched_component_initialize_simple_schedulers(unsigned sched_ctx_id, unsigned ndecisions,...)
starpu_sched_component_can_pull
int starpu_sched_component_can_pull(struct starpu_sched_component *component)
starpu_sched_tree_work_stealing_push_task
int starpu_sched_tree_work_stealing_push_task(struct starpu_task *task)
starpu_sched_component_initialize_simple_scheduler
void starpu_sched_component_initialize_simple_scheduler(starpu_sched_component_create_t create_decision_component, void *data, unsigned flags, unsigned sched_ctx_id)
starpu_sched_tree_push_task
int starpu_sched_tree_push_task(struct starpu_task *task)
starpu_sched_tree_update_workers
void starpu_sched_tree_update_workers(struct starpu_sched_tree *t)
starpu_sched_component_estimated_end_min
double starpu_sched_component_estimated_end_min(struct starpu_sched_component *component)
starpu_sched_tree_pop_task
struct starpu_task * starpu_sched_tree_pop_task(unsigned sched_ctx)
starpu_sched_component_estimated_load
double starpu_sched_component_estimated_load(struct starpu_sched_component *component)
starpu_sched_tree_create
struct starpu_sched_tree * starpu_sched_tree_create(unsigned sched_ctx_id) STARPU_ATTRIBUTE_MALLOC
starpu_sched_component_is_fifo
int starpu_sched_component_is_fifo(struct starpu_sched_component *component)
starpu_sched_component_estimated_end_min_add
double starpu_sched_component_estimated_end_min_add(struct starpu_sched_component *component, double exp_len)
starpu_sched_component_create
struct starpu_sched_component * starpu_sched_component_create(struct starpu_sched_tree *tree, const char *name) STARPU_ATTRIBUTE_MALLOC
starpu_sched_tree_add_workers
void starpu_sched_tree_add_workers(unsigned sched_ctx_id, int *workerids, unsigned nworkers)
starpu_sched_component_can_push
int starpu_sched_component_can_push(struct starpu_sched_component *component, struct starpu_sched_component *to)
starpu_sched_tree_deinitialize
void starpu_sched_tree_deinitialize(unsigned sched_ctx_id)
starpu_sched_component_is_combined_worker
int starpu_sched_component_is_combined_worker(struct starpu_sched_component *component)
starpu_sched_component_connect
void starpu_sched_component_connect(struct starpu_sched_component *parent, struct starpu_sched_component *child)
starpu_sched_component_random_create
struct starpu_sched_component * starpu_sched_component_random_create(struct starpu_sched_tree *tree, void *arg) STARPU_ATTRIBUTE_MALLOC
starpu_sched_component_can_execute_task
int starpu_sched_component_can_execute_task(struct starpu_sched_component *component, struct starpu_task *task)
starpu_sched_component_mct_create
struct starpu_sched_component * starpu_sched_component_mct_create(struct starpu_sched_tree *tree, struct starpu_sched_component_mct_data *mct_data) STARPU_ATTRIBUTE_MALLOC
starpu_sched_component_destroy_rec
void starpu_sched_component_destroy_rec(struct starpu_sched_component *component)
starpu_sched_component_make_scheduler
struct starpu_sched_tree * starpu_sched_component_make_scheduler(unsigned sched_ctx_id, struct starpu_sched_component_specs s)
starpu_sched_component_properties
starpu_sched_component_properties
Definition starpu_sched_component.h:42
starpu_sched_tree_destroy
void starpu_sched_tree_destroy(struct starpu_sched_tree *tree)
starpu_sched_component_parents_pull_task
struct starpu_task * starpu_sched_component_parents_pull_task(struct starpu_sched_component *component, struct starpu_sched_component *to)
starpu_sched_component_is_work_stealing
int starpu_sched_component_is_work_stealing(struct starpu_sched_component *component)
starpu_sched_component_composed_recipe_add
void starpu_sched_component_composed_recipe_add(struct starpu_sched_component_composed_recipe *recipe, struct starpu_sched_component *(*create_component)(struct starpu_sched_tree *tree, void *arg), void *arg)
starpu_sched_component_worker_post_exec_hook
void starpu_sched_component_worker_post_exec_hook(struct starpu_task *task, unsigned sched_ctx_id)
starpu_sched_component_is_random
int starpu_sched_component_is_random(struct starpu_sched_component *)
starpu_sched_component_is_worker
int starpu_sched_component_is_worker(struct starpu_sched_component *component)
starpu_sched_tree_update_workers_in_ctx
void starpu_sched_tree_update_workers_in_ctx(struct starpu_sched_tree *t)
starpu_sched_component_push_task
int starpu_sched_component_push_task(struct starpu_sched_component *from, struct starpu_sched_component *to, struct starpu_task *task)
starpu_sched_component_worker_pre_exec_hook
void starpu_sched_component_worker_pre_exec_hook(struct starpu_task *task, unsigned sched_ctx_id)
STARPU_SCHED_COMPONENT_HOMOGENEOUS
@ STARPU_SCHED_COMPONENT_HOMOGENEOUS
Definition starpu_sched_component.h:44
STARPU_SCHED_COMPONENT_SINGLE_MEMORY_NODE
@ STARPU_SCHED_COMPONENT_SINGLE_MEMORY_NODE
Definition starpu_sched_component.h:46
starpu_sched_component
Definition starpu_sched_component.h:68
starpu_sched_component_fifo_data
Definition starpu_sched_component.h:423
starpu_sched_component_heteroprio_data
Definition starpu_sched_component.h:568
starpu_sched_component_mct_data
Definition starpu_sched_component.h:534
starpu_sched_component_perfmodel_select_data
Definition starpu_sched_component.h:599
starpu_sched_component_prio_data
Definition starpu_sched_component.h:449
starpu_sched_component_specs
Definition starpu_sched_component.h:671
starpu_sched_tree
Definition starpu_sched_component.h:183
STARPU_ATTRIBUTE_MALLOC
#define STARPU_ATTRIBUTE_MALLOC
Definition starpu_util.h:112
starpu_worker_archtype
starpu_worker_archtype
Definition starpu_worker.h:63
starpu.h