Estimation Vector API
API functions (in DIET_server.h
) are provided to:
- Store a value, associated with a tag, in the estimation vector. These
functions are intended to be used in the SeD code:
- int diet_est_set(estVector_t ev, int userTag, double value);
int diet_est_array_set(estVector_t ev, int userTag, int idx, double value);
int diet_est_set_str(estVector_t ev, int userTag, const char *value);
int diet_est_set_bin(estVector_t ev, int userTag, const unsigned char *buf, size_t size);
- Retrieve the value associated with a tag from the estimation
vector. These functions are intended to be used in a custom plugin scheduler
code:
- int double diet_est_get(estVectorConst_t ev, int userTag, double errVal);
double diet_est_get_system(estVectorConst_t ev, int systemTag, double errVal);
double diet_est_array_get(estVectorConst_t ev, int userTag, int idx, double errVal);
double diet_est_array_get_system(estVectorConst_t ev, int systemTag, int idx, double errVal);
const char* diet_est_get_str(estVectorConst_t ev, int userTag);
const char* diet_est_get_str_system(estVectorConst_t ev, int systemTag);
int diet_est_get_bin(estVectorConst_t ev, int userTag, const unsigned char **buf, size_t *size);
int diet_est_get_bin_system(estVectorConst_t ev, int systemTag, const unsigned char **buf, size_t *size);
- Some auxiliary functions also allow getting some informations about particular values in the estimation vector:
- int diet_est_defined(estVectorConst_t ev, int userTag);
int diet_est_defined_system(estVectorConst_t ev, int systemTag);
int diet_est_array_size(estVectorConst_t ev, int userTag);
int diet_est_array_size_system(estVectorConst_t ev, int systemTag);
int diet_est_array_defined(estVectorConst_t ev, int userTag, int idx);
int diet_est_array_defined_system(estVectorConst_t ev, int systemTag, int idx);
Note that no function is provided to set a standard estimation tag, it
is intended that cori sets these tags.
Tagged data are used to effect scheduling policies by defining custom server
response aggregation methods, described in Section 9.3.6.
The DIET Team - Mer 29 nov 2017 15:13:36 EST