17 #ifndef SC_HYPERVISOR_H
18 #define SC_HYPERVISOR_H
32 starpu_pthread_mutex_t act_hypervisor_mutex;
44 void (*
size_ctxs)(
unsigned *sched_ctxs,
int nsched_ctxs ,
int *workers,
int nworkers);
47 void (*
resize_ctxs)(
unsigned *sched_ctxs,
int nsched_ctxs ,
int *workers,
int nworkers);
87 void sc_hypervisor_resize_ctxs(
unsigned *sched_ctxs,
int nsched_ctxs ,
int *workers,
int nworkers);
105 void sc_hypervisor_move_workers(
unsigned sender_sched_ctx,
unsigned receiver_sched_ctx,
int *workers_to_move,
unsigned nworkers_to_move,
unsigned now);
132 void sc_hypervisor_update_resize_interval(
unsigned *sched_ctxs,
int nsched_ctxs);
void(* handle_poped_task)(unsigned sched_ctx, int worker, struct starpu_task *task, uint32_t footprint)
Definition: sc_hypervisor.h:56
Definition: starpu_task.h:73
void sc_hypervisor_unregister_ctx(unsigned sched_ctx)
void sc_hypervisor_stop_resize(unsigned sched_ctx)
void(* resize_ctxs)(unsigned *sched_ctxs, int nsched_ctxs, int *workers, int nworkers)
Definition: sc_hypervisor.h:47
void sc_hypervisor_set_type_of_task(struct starpu_codelet *cl, unsigned sched_ctx, uint32_t footprint, size_t data_size)
void(* end_ctx)(unsigned sched_ctx)
Definition: sc_hypervisor.h:68
void(* handle_post_exec_hook)(unsigned sched_ctx, int task_tag)
Definition: sc_hypervisor.h:62
void sc_hypervisor_shutdown(void)
unsigned sc_hypervisor_can_resize(unsigned sched_ctx)
void sc_hypervisor_size_ctxs(unsigned *sched_ctxs, int nsched_ctxs, int *workers, int nworkers)
void sc_hypervisor_update_diff_total_flops(unsigned sched_ctx, double diff_total_flops)
const char * sc_hypervisor_get_policy()
void(* size_ctxs)(unsigned *sched_ctxs, int nsched_ctxs, int *workers, int nworkers)
Definition: sc_hypervisor.h:44
void sc_hypervisor_free_size_req(void)
void(* handle_idle_end)(unsigned sched_ctx, int worker)
Definition: sc_hypervisor.h:59
Definition: starpu_task.h:104
Definition: sc_hypervisor.h:35
void * sc_hypervisor_init(struct sc_hypervisor_policy *policy)
void sc_hypervisor_move_workers(unsigned sender_sched_ctx, unsigned receiver_sched_ctx, int *workers_to_move, unsigned nworkers_to_move, unsigned now)
void sc_hypervisor_remove_workers_from_sched_ctx(int *workers_to_remove, unsigned nworkers_to_remove, unsigned sched_ctx, unsigned now)
void(* handle_idle_cycle)(unsigned sched_ctx, int worker)
Definition: sc_hypervisor.h:50
void(* handle_submitted_job)(struct starpu_codelet *cl, unsigned sched_ctx, uint32_t footprint, size_t data_size)
Definition: sc_hypervisor.h:65
unsigned custom
Definition: sc_hypervisor.h:41
unsigned sc_hypervisor_get_size_req(unsigned **sched_ctxs, int *nsched_ctxs, int **workers, int *nworkers)
unsigned sched_ctx
Definition: starpu_task.h:161
const char * name
Definition: sc_hypervisor.h:38
void sc_hypervisor_post_resize_request(unsigned sched_ctx, int task_tag)
void sc_hypervisor_save_size_req(unsigned *sched_ctxs, int nsched_ctxs, int *workers, int nworkers)
void sc_hypervisor_add_workers_to_sched_ctx(int *workers_to_add, unsigned nworkers_to_add, unsigned sched_ctx)
void sc_hypervisor_register_ctx(unsigned sched_ctx, double total_flops)
void(* handle_pushed_task)(unsigned sched_ctx, int worker)
Definition: sc_hypervisor.h:53
void sc_hypervisor_update_diff_elapsed_flops(unsigned sched_ctx, double diff_task_flops)
void sc_hypervisor_start_resize(unsigned sched_ctx)