StarPU Handbook - StarPU Performances
sc_hypervisor_monitoring.h
Go to the documentation of this file.
1 /* StarPU --- Runtime system for heterogeneous multicore architectures.
2  *
3  * Copyright (C) 2011-2022 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
4  * Copyright (C) 2015 Mathieu Lirzin
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 SC_HYPERVISOR_MONITORING_H
19 #define SC_HYPERVISOR_MONITORING_H
20 
21 #include <sc_hypervisor.h>
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
37 {
42 
47 
52 
59 };
60 
68 {
72  unsigned sched_ctx;
73 
78 
84 
89 
94 
99 
104 
109 
115 
120 
125 
129  double total_flops;
130 
135 
140 
146 
151 
157  double ref_speed[2];
158 
163 
169 
173  double start_time;
174 
179 
184 
192 
197  starpu_pthread_mutex_t mutex;
198 
204 
208  unsigned to_be_sized;
209 
215 
221 
225  unsigned consider_max;
226 };
227 
233 
239 
245 
250 
257 
262 
267 
272 
275 #ifdef __cplusplus
276 }
277 #endif
278 
279 #endif
int * acked_workers
Definition: sc_hypervisor_monitoring.h:58
int * moved_workers
Definition: sc_hypervisor_monitoring.h:46
int nmoved_workers
Definition: sc_hypervisor_monitoring.h:51
int receiver_sched_ctx
Definition: sc_hypervisor_monitoring.h:41
double sc_hypervisor_get_elapsed_flops_per_sched_ctx(struct sc_hypervisor_wrapper *sc_w)
unsigned * sc_hypervisor_get_sched_ctxs(void)
struct sc_hypervisor_wrapper * sc_hypervisor_get_wrapper(unsigned sched_ctx)
double sc_hypervisorsc_hypervisor_get_speed_per_worker_type(struct sc_hypervisor_wrapper *sc_w, enum starpu_worker_archtype arch)
double sc_hypervisor_get_total_elapsed_flops_per_sched_ctx(struct sc_hypervisor_wrapper *sc_w)
int sc_hypervisor_get_nworkers_ctx(unsigned sched_ctx, enum starpu_worker_archtype arch)
int sc_hypervisor_get_nsched_ctxs(void)
double sc_hypervisor_get_speed(struct sc_hypervisor_wrapper *sc_w, enum starpu_worker_archtype arch)
Definition: sc_hypervisor_monitoring.h:37
starpu_worker_archtype
Definition: starpu_worker.h:66
#define STARPU_NMAXWORKERS
Definition: starpu_config.h:284
Definition: sc_hypervisor_config.h:140
struct sc_hypervisor_resize_ack resize_ack
Definition: sc_hypervisor_monitoring.h:191
int pushed_tasks[STARPU_NMAXWORKERS]
Definition: sc_hypervisor_monitoring.h:119
double start_time_w[STARPU_NMAXWORKERS]
Definition: sc_hypervisor_monitoring.h:83
double start_time
Definition: sc_hypervisor_monitoring.h:173
size_t elapsed_data[STARPU_NMAXWORKERS]
Definition: sc_hypervisor_monitoring.h:145
unsigned compute_partial_idle[STARPU_NMAXWORKERS]
Definition: sc_hypervisor_monitoring.h:220
double idle_start_time[STARPU_NMAXWORKERS]
Definition: sc_hypervisor_monitoring.h:98
double submitted_flops
Definition: sc_hypervisor_monitoring.h:162
double elapsed_flops[STARPU_NMAXWORKERS]
Definition: sc_hypervisor_monitoring.h:139
int poped_tasks[STARPU_NMAXWORKERS]
Definition: sc_hypervisor_monitoring.h:124
double current_idle_time[STARPU_NMAXWORKERS]
Definition: sc_hypervisor_monitoring.h:88
double total_elapsed_flops[STARPU_NMAXWORKERS]
Definition: sc_hypervisor_monitoring.h:134
double exec_time[STARPU_NMAXWORKERS]
Definition: sc_hypervisor_monitoring.h:103
struct sc_hypervisor_policy_config * config
Definition: sc_hypervisor_monitoring.h:77
double exec_start_time[STARPU_NMAXWORKERS]
Definition: sc_hypervisor_monitoring.h:108
double real_start_time
Definition: sc_hypervisor_monitoring.h:178
unsigned sched_ctx
Definition: sc_hypervisor_monitoring.h:72
double hyp_react_start_time
Definition: sc_hypervisor_monitoring.h:183
int elapsed_tasks[STARPU_NMAXWORKERS]
Definition: sc_hypervisor_monitoring.h:150
unsigned compute_idle[STARPU_NMAXWORKERS]
Definition: sc_hypervisor_monitoring.h:214
double remaining_flops
Definition: sc_hypervisor_monitoring.h:168
int worker_to_be_removed[STARPU_NMAXWORKERS]
Definition: sc_hypervisor_monitoring.h:114
unsigned total_flops_available
Definition: sc_hypervisor_monitoring.h:203
starpu_pthread_mutex_t mutex
Definition: sc_hypervisor_monitoring.h:197
unsigned consider_max
Definition: sc_hypervisor_monitoring.h:225
double total_flops
Definition: sc_hypervisor_monitoring.h:129
double ref_speed[2]
Definition: sc_hypervisor_monitoring.h:157
double idle_time[STARPU_NMAXWORKERS]
Definition: sc_hypervisor_monitoring.h:93
unsigned to_be_sized
Definition: sc_hypervisor_monitoring.h:208
Definition: sc_hypervisor_monitoring.h:68