StarPU Handbook - StarPU Basics
starpu_perf_steering.h
Go to the documentation of this file.
1 /* StarPU --- Runtime system for heterogeneous multicore architectures.
2  *
3  * Copyright (C) 2019-2021 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
4  *
5  * StarPU is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU Lesser General Public License as published by
7  * the Free Software Foundation; either version 2.1 of the License, or (at
8  * your option) any later version.
9  *
10  * StarPU is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13  *
14  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
15  */
16 
17 #ifndef __STARPU_PERF_STEERING_H__
18 #define __STARPU_PERF_STEERING_H__
19 
20 #include <starpu.h>
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
42 {
47 };
48 
53 {
59 };
60 
64 int starpu_perf_knob_scope_name_to_id(const char *name);
65 
70 
74 int starpu_perf_knob_type_name_to_id(const char *name);
75 
80 
85 
89 int starpu_perf_knob_name_to_id(enum starpu_perf_knob_scope scope, const char *name);
90 
95 
99 const char *starpu_perf_knob_id_to_name(int id);
100 
105 
110 
115 
120 
124 int32_t starpu_perf_knob_get_global_int32_value(const int knob_id);
125 
129 int64_t starpu_perf_knob_get_global_int64_value(const int knob_id);
130 
135 
140 
144 void starpu_perf_knob_set_global_int32_value(const int knob_id, int32_t new_value);
145 
149 void starpu_perf_knob_set_global_int64_value(const int knob_id, int64_t new_value);
150 
154 void starpu_perf_knob_set_global_float_value(const int knob_id, float new_value);
155 
159 void starpu_perf_knob_set_global_double_value(const int knob_id, double new_value);
160 
164 int32_t starpu_perf_knob_get_per_worker_int32_value(const int knob_id, unsigned workerid);
165 
169 int64_t starpu_perf_knob_get_per_worker_int64_value(const int knob_id, unsigned workerid);
170 
174 float starpu_perf_knob_get_per_worker_float_value(const int knob_id, unsigned workerid);
175 
179 double starpu_perf_knob_get_per_worker_double_value(const int knob_id, unsigned workerid);
180 
184 void starpu_perf_knob_set_per_worker_int32_value(const int knob_id, unsigned workerid, int32_t new_value);
185 
189 void starpu_perf_knob_set_per_worker_int64_value(const int knob_id, unsigned workerid, int64_t new_value);
190 
194 void starpu_perf_knob_set_per_worker_float_value(const int knob_id, unsigned workerid, float new_value);
195 
199 void starpu_perf_knob_set_per_worker_double_value(const int knob_id, unsigned workerid, double new_value);
200 
204 int32_t starpu_perf_knob_get_per_scheduler_int32_value(const int knob_id, const char *sched_policy_name);
205 
209 int64_t starpu_perf_knob_get_per_scheduler_int64_value(const int knob_id, const char *sched_policy_name);
210 
214 float starpu_perf_knob_get_per_scheduler_float_value(const int knob_id, const char *sched_policy_name);
215 
219 double starpu_perf_knob_get_per_scheduler_double_value(const int knob_id, const char *sched_policy_name);
220 
224 void starpu_perf_knob_set_per_scheduler_int32_value(const int knob_id, const char *sched_policy_name, int32_t new_value);
225 
229 void starpu_perf_knob_set_per_scheduler_int64_value(const int knob_id, const char *sched_policy_name, int64_t new_value);
230 
234 void starpu_perf_knob_set_per_scheduler_float_value(const int knob_id, const char *sched_policy_name, float new_value);
235 
239 void starpu_perf_knob_set_per_scheduler_double_value(const int knob_id, const char *sched_policy_name, double new_value);
240 
245 #ifdef __cplusplus
246 }
247 #endif
248 
249 #endif /* __STARPU_PERF_STEERING_H__ */
void starpu_perf_knob_list_all_avail(void)
int64_t starpu_perf_knob_get_global_int64_value(const int knob_id)
void starpu_perf_knob_set_global_float_value(const int knob_id, float new_value)
void starpu_perf_knob_set_per_scheduler_int64_value(const int knob_id, const char *sched_policy_name, int64_t new_value)
float starpu_perf_knob_get_per_scheduler_float_value(const int knob_id, const char *sched_policy_name)
void starpu_perf_knob_set_global_int64_value(const int knob_id, int64_t new_value)
int64_t starpu_perf_knob_get_per_worker_int64_value(const int knob_id, unsigned workerid)
int32_t starpu_perf_knob_get_per_scheduler_int32_value(const int knob_id, const char *sched_policy_name)
int32_t starpu_perf_knob_get_global_int32_value(const int knob_id)
void starpu_perf_knob_set_per_worker_double_value(const int knob_id, unsigned workerid, double new_value)
float starpu_perf_knob_get_per_worker_float_value(const int knob_id, unsigned workerid)
double starpu_perf_knob_get_per_worker_double_value(const int knob_id, unsigned workerid)
int starpu_perf_knob_name_to_id(enum starpu_perf_knob_scope scope, const char *name)
int starpu_perf_knob_get_type_id(int id)
void starpu_perf_knob_set_global_int32_value(const int knob_id, int32_t new_value)
void starpu_perf_knob_set_per_worker_int64_value(const int knob_id, unsigned workerid, int64_t new_value)
void starpu_perf_knob_set_per_scheduler_int32_value(const int knob_id, const char *sched_policy_name, int32_t new_value)
int starpu_perf_knob_nth_to_id(enum starpu_perf_knob_scope scope, int nth)
const char * starpu_perf_knob_id_to_name(int id)
const char * starpu_perf_knob_type_id_to_name(enum starpu_perf_knob_type type)
void starpu_perf_knob_set_per_worker_int32_value(const int knob_id, unsigned workerid, int32_t new_value)
int starpu_perf_knob_scope_name_to_id(const char *name)
double starpu_perf_knob_get_global_double_value(const int knob_id)
void starpu_perf_knob_set_global_double_value(const int knob_id, double new_value)
void starpu_perf_knob_set_per_scheduler_double_value(const int knob_id, const char *sched_policy_name, double new_value)
void starpu_perf_knob_list_avail(enum starpu_perf_knob_scope scope)
int64_t starpu_perf_knob_get_per_scheduler_int64_value(const int knob_id, const char *sched_policy_name)
starpu_perf_knob_scope
Definition: starpu_perf_steering.h:42
void starpu_perf_knob_set_per_scheduler_float_value(const int knob_id, const char *sched_policy_name, float new_value)
const char * starpu_perf_knob_get_help_string(int id)
void starpu_perf_knob_set_per_worker_float_value(const int knob_id, unsigned workerid, float new_value)
starpu_perf_knob_type
Definition: starpu_perf_steering.h:53
double starpu_perf_knob_get_per_scheduler_double_value(const int knob_id, const char *sched_policy_name)
float starpu_perf_knob_get_global_float_value(const int knob_id)
const char * starpu_perf_knob_scope_id_to_name(enum starpu_perf_knob_scope scope)
int32_t starpu_perf_knob_get_per_worker_int32_value(const int knob_id, unsigned workerid)
int starpu_perf_knob_nb(enum starpu_perf_knob_scope scope)
int starpu_perf_knob_type_name_to_id(const char *name)
@ starpu_perf_knob_scope_per_worker
Definition: starpu_perf_steering.h:45
@ starpu_perf_knob_scope_undefined
Definition: starpu_perf_steering.h:43
@ starpu_perf_knob_scope_global
Definition: starpu_perf_steering.h:44
@ starpu_perf_knob_scope_per_scheduler
Definition: starpu_perf_steering.h:46
@ starpu_perf_knob_type_int32
Definition: starpu_perf_steering.h:55
@ starpu_perf_knob_type_float
Definition: starpu_perf_steering.h:57
@ starpu_perf_knob_type_double
Definition: starpu_perf_steering.h:58
@ starpu_perf_knob_type_int64
Definition: starpu_perf_steering.h:56
@ starpu_perf_knob_type_undefined
Definition: starpu_perf_steering.h:54