| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217 | /* * This file is part of the StarPU Handbook. * Copyright (C) 2009--2011  Universit@'e de Bordeaux 1 * Copyright (C) 2010, 2011, 2012, 2013  Centre National de la Recherche Scientifique * Copyright (C) 2011, 2012 Institut National de Recherche en Informatique et Automatique * See the file version.doxy for copying conditions. *//*! \defgroup API_StarPUTop_Interface StarPU-Top Interface\enum starpu_top_data_type\ingroup API_StarPUTop_InterfaceStarPU-Top Data type\var starpu_top_data_type::STARPU_TOP_DATA_BOOLEAN\ingroup API_StarPUTop_Interfacetodo\var starpu_top_data_type::STARPU_TOP_DATA_INTEGER\ingroup API_StarPUTop_Interfacetodo\var starpu_top_data_type::STARPU_TOP_DATA_FLOAT\ingroup API_StarPUTop_Interfacetodo\enum starpu_top_param_type\ingroup API_StarPUTop_InterfaceStarPU-Top Parameter type\var starpu_top_param_type::STARPU_TOP_PARAM_BOOLEAN\ingroup API_StarPUTop_Interfacetodo\var starpu_top_param_type::STARPU_TOP_PARAM_INTEGER\ingroup API_StarPUTop_Interfacetodo\var starpu_top_param_type::STARPU_TOP_PARAM_FLOAT\ingroup API_StarPUTop_Interfacetodo\var starpu_top_param_type::STARPU_TOP_PARAM_ENUM\ingroup API_StarPUTop_Interfacetodo\enum starpu_top_message_type\ingroup API_StarPUTop_InterfaceStarPU-Top Message type\var starpu_top_message_type::TOP_TYPE_GO\ingroup API_StarPUTop_Interfacetodo\var starpu_top_message_type::TOP_TYPE_SET\ingroup API_StarPUTop_Interfacetodo\var starpu_top_message_type::TOP_TYPE_CONTINUE\ingroup API_StarPUTop_Interfacetodo\var starpu_top_message_type::TOP_TYPE_ENABLE\ingroup API_StarPUTop_Interfacetodo\var starpu_top_message_type::TOP_TYPE_DISABLE\ingroup API_StarPUTop_Interfacetodo\var starpu_top_message_type::TOP_TYPE_DEBUG\ingroup API_StarPUTop_Interfacetodo\var starpu_top_message_type::TOP_TYPE_UNKNOW\ingroup API_StarPUTop_Interfacetodo\struct starpu_top_datatodo\ingroup API_StarPUTop_Interface\var starpu_top_data::idtodo\var starpu_top_data::nametodo\var starpu_top_data::int_min_valuetodo\var starpu_top_data::int_max_valuetodo\var starpu_top_data::double_min_valuetodo\var starpu_top_data::double_max_valuetodo\var starpu_top_data::activetodo\var starpu_top_data::typetodo\var starpu_top_data::nexttodo\struct starpu_top_paramtodo\ingroup API_StarPUTop_Interface\var starpu_top_param::idtodo\var starpu_top_param::nametodo\var starpu_top_param::typetodo\var starpu_top_param::valuetodo\var starpu_top_param::enum_valuesonly for enum type can be NULL\var starpu_top_param::nb_valuestodo\var starpu_top_param::callbacktodo\var starpu_top_param::int_min_valueonly for integer type\var starpu_top_param::int_max_valuetodo\var starpu_top_param::double_min_valueonly for double type\var starpu_top_param::double_max_valuetodo\var starpu_top_param::nexttodo@name Functions to call before the initialisation\ingroup API_StarPUTop_Interface\fn struct starpu_top_data *starpu_top_add_data_boolean(const char *data_name, int active)\ingroup API_StarPUTop_InterfaceThis fonction register a data named data_name of type boolean.If \p active=0, the value will NOT be displayed to user by default.Any other value will make the value displayed by default.\fn struct starpu_top_data *starpu_top_add_data_integer(const char *data_name, int minimum_value, int maximum_value, int active)\ingroup API_StarPUTop_InterfaceThis fonction register a data named \p data_name of type integer. Theminimum and maximum value will be usefull to define the scale in UI.If \p active=0, the value will NOT be displayed to user by default.Any other value will make the value displayed by default.\fn struct starpu_top_data *starpu_top_add_data_float(const char *data_name, double minimum_value, double maximum_value, int active)\ingroup API_StarPUTop_InterfaceThis fonction register a data named data_name of type float. Theminimum and maximum value will be usefull to define the scale in UI.If \p active=0, the value will NOT be displayed to user by default.Any other value will make the value displayed by default.\fn struct starpu_top_param *starpu_top_register_parameter_boolean(const char *param_name, int *parameter_field, void (*callback)(struct starpu_top_param*))\ingroup API_StarPUTop_InterfaceThis fonction register a parameter named \p parameter_name, of typeboolean. The \p callback fonction will be called when the parameter ismodified by UI, and can be null.\fn struct starpu_top_param *starpu_top_register_parameter_float(const char *param_name, double *parameter_field, double minimum_value, double maximum_value, void (*callback)(struct starpu_top_param*))\ingroup API_StarPUTop_Interfacehis fonction register a parameter named \p param_name, of typeinteger. Minimum and maximum value will be used to prevent user setingincorrect value. The \p callback fonction will be called when theparameter is modified by UI, and can be null.\fn struct starpu_top_param *starpu_top_register_parameter_integer(const char *param_name, int *parameter_field, int minimum_value, int maximum_value, void (*callback)(struct starpu_top_param*))\ingroup API_StarPUTop_InterfaceThis fonction register a parameter named \p param_name, of type float.Minimum and maximum value will be used to prevent user setingincorrect value. The \p callback fonction will be called when theparameter is modified by UI, and can be null.\fn struct starpu_top_param *starpu_top_register_parameter_enum(const char *param_name, int *parameter_field, char **values, int nb_values, void (*callback)(struct starpu_top_param*))\ingroup API_StarPUTop_InterfaceThis fonction register a parameter named \p param_name, of type enum.Minimum and maximum value will be used to prevent user setingincorrect value. The \p callback fonction will be called when theparameter is modified by UI, and can be null.@name Initialisation\ingroup API_StarPUTop_Interface\fn void starpu_top_init_and_wait(const char *server_name)\ingroup API_StarPUTop_InterfaceThis function must be called when all parameters and data have beenregistered AND initialised (for parameters). This function will waitfor a TOP to connect, send initialisation sentences, and wait for theGO message.@name To call after initialisation\ingroup API_StarPUTop_Interface\fn void starpu_top_update_parameter(const struct starpu_top_param *param)\ingroup API_StarPUTop_InterfaceThis function should be called after every modification of a parameterfrom something other than starpu_top. This fonction notice UI that theconfiguration changed.\fn void starpu_top_update_data_boolean(const struct starpu_top_data *data, int value)\ingroup API_StarPUTop_InterfaceThis function updates the value of the starpu_top_data on UI.\fn void starpu_top_update_data_integer(const struct starpu_top_data *data, int value)\ingroup API_StarPUTop_InterfaceThis function updates the value of the starpu_top_data on UI.\fn void starpu_top_update_data_float(const struct starpu_top_data *data, double value)\ingroup API_StarPUTop_InterfaceThis function updates the value of the starpu_top_data on UI.\fn void starpu_top_task_prevision(struct starpu_task *task, int devid, unsigned long long start, unsigned long long end)\ingroup API_StarPUTop_InterfaceThis function notifies UI than the task have been planed to run from start to end, on computation-core.\fn void starpu_top_debug_log(const char *message)\ingroup API_StarPUTop_InterfaceThis function is useful in debug mode. The starpu developper doesn'tneed to check if the debug mode is active. This is checked bystarpu_top itsefl. It just send a message to display by UI.\fn void starpu_top_debug_lock(const char *message)\ingroup API_StarPUTop_InterfaceThis function is useful in debug mode. The starpu developper doesn'tneed to check if the debug mode is active. This is checked bystarpu_top itsefl. It send a message and wait for a continue messagefrom UI to return. The lock (wich create a stop-point) should becalled only by the main thread. Calling it from more than one threadis not supported.*/
 |