StarPU Handbook
starpu_sched_ctx_hypervisor.h
Go to the documentation of this file.
1 /* StarPU --- Runtime system for heterogeneous multicore architectures.
2  *
3  * Copyright (C) 2010,2012,2013,2015 Inria
4  * Copyright (C) 2013,2017,2019 CNRS
5  *
6  * StarPU is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation; either version 2.1 of the License, or (at
9  * your option) any later version.
10  *
11  * StarPU is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14  *
15  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
16  */
17 
18 #ifndef __STARPU_SCHED_CTX_HYPERVISOR_H__
19 #define __STARPU_SCHED_CTX_HYPERVISOR_H__
20 
21 #ifdef __cplusplus
22 extern "C"
23 {
24 #endif
25 
41 {
46  void (*notify_idle_cycle)(unsigned sched_ctx_id, int worker, double idle_time);
47 
52  void (*notify_poped_task)(unsigned sched_ctx_id, int worker);
53 
59  void (*notify_pushed_task)(unsigned sched_ctx_id, int worker);
60 
64  void (*notify_post_exec_task)(struct starpu_task *task, size_t data_size, uint32_t footprint, int hypervisor_tag, double flops);
65 
69  void (*notify_submitted_job)(struct starpu_task *task, uint32_t footprint, size_t data_size);
70 
71  void (*notify_empty_ctx)(unsigned sched_ctx_id, struct starpu_task *task);
72 
76  void (*notify_delete_context)(unsigned sched_ctx);
77 };
78 
82 void starpu_sched_ctx_set_perf_counters(unsigned sched_ctx_id, void *perf_counters);
83 
88 void starpu_sched_ctx_call_pushed_task_cb(int workerid, unsigned sched_ctx_id);
89 
94 
99 
100 void starpu_sched_ctx_update_start_resizing_sample(unsigned sched_ctx_id, double start_sample);
101 
106 #ifdef __cplusplus
107 }
108 #endif
109 
110 #endif /* __STARPU_SCHED_CTX_HYPERVISOR_H__ */
void starpu_sched_ctx_notify_hypervisor_exists(void)
void(* notify_idle_cycle)(unsigned sched_ctx_id, int worker, double idle_time)
Definition: starpu_sched_ctx_hypervisor.h:46
void(* notify_delete_context)(unsigned sched_ctx)
Definition: starpu_sched_ctx_hypervisor.h:76
void(* notify_post_exec_task)(struct starpu_task *task, size_t data_size, uint32_t footprint, int hypervisor_tag, double flops)
Definition: starpu_sched_ctx_hypervisor.h:64
unsigned workerid
Definition: starpu_task.h:937
void starpu_sched_ctx_set_perf_counters(unsigned sched_ctx_id, void *perf_counters)
void starpu_sched_ctx_call_pushed_task_cb(int workerid, unsigned sched_ctx_id)
unsigned sched_ctx
Definition: starpu_task.h:1038
void(* notify_poped_task)(unsigned sched_ctx_id, int worker)
Definition: starpu_sched_ctx_hypervisor.h:52
void(* notify_submitted_job)(struct starpu_task *task, uint32_t footprint, size_t data_size)
Definition: starpu_sched_ctx_hypervisor.h:69
Definition: starpu_task.h:548
unsigned starpu_sched_ctx_check_if_hypervisor_exists(void)
double flops
Definition: starpu_task.h:1080
void(* notify_pushed_task)(unsigned sched_ctx_id, int worker)
Definition: starpu_sched_ctx_hypervisor.h:59
Definition: starpu_sched_ctx_hypervisor.h:40
int hypervisor_tag
Definition: starpu_task.h:1046