top.doxy 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. /*
  2. * This file is part of the StarPU Handbook.
  3. * Copyright (C) 2009--2011 Universit@'e de Bordeaux
  4. * Copyright (C) 2010, 2011, 2012, 2013, 2014, 2017 CNRS
  5. * Copyright (C) 2011, 2012 INRIA
  6. * See the file version.doxy for copying conditions.
  7. */
  8. /*! \defgroup API_StarPUTop_Interface StarPU-Top Interface
  9. \enum starpu_top_data_type
  10. \ingroup API_StarPUTop_Interface
  11. StarPU-Top Data type
  12. \var starpu_top_data_type::STARPU_TOP_DATA_BOOLEAN
  13. todo
  14. \var starpu_top_data_type::STARPU_TOP_DATA_INTEGER
  15. todo
  16. \var starpu_top_data_type::STARPU_TOP_DATA_FLOAT
  17. todo
  18. \enum starpu_top_param_type
  19. \ingroup API_StarPUTop_Interface
  20. StarPU-Top Parameter type
  21. \var starpu_top_param_type::STARPU_TOP_PARAM_BOOLEAN
  22. todo
  23. \var starpu_top_param_type::STARPU_TOP_PARAM_INTEGER
  24. todo
  25. \var starpu_top_param_type::STARPU_TOP_PARAM_FLOAT
  26. todo
  27. \var starpu_top_param_type::STARPU_TOP_PARAM_ENUM
  28. todo
  29. \enum starpu_top_message_type
  30. \ingroup API_StarPUTop_Interface
  31. StarPU-Top Message type
  32. \var starpu_top_message_type::TOP_TYPE_GO
  33. todo
  34. \var starpu_top_message_type::TOP_TYPE_SET
  35. todo
  36. \var starpu_top_message_type::TOP_TYPE_CONTINUE
  37. todo
  38. \var starpu_top_message_type::TOP_TYPE_ENABLE
  39. todo
  40. \var starpu_top_message_type::TOP_TYPE_DISABLE
  41. todo
  42. \var starpu_top_message_type::TOP_TYPE_DEBUG
  43. todo
  44. \var starpu_top_message_type::TOP_TYPE_UNKNOW
  45. todo
  46. \struct starpu_top_data
  47. todo
  48. \ingroup API_StarPUTop_Interface
  49. \var unsigned int starpu_top_data::id
  50. todo
  51. \var const char *starpu_top_data::name
  52. todo
  53. \var int starpu_top_data::int_min_value
  54. todo
  55. \var int starpu_top_data::int_max_value
  56. todo
  57. \var double starpu_top_data::double_min_value
  58. todo
  59. \var double starpu_top_data::double_max_value
  60. todo
  61. \var int starpu_top_data::active
  62. todo
  63. \var enum starpu_top_data_type starpu_top_data::type
  64. todo
  65. \var struct starpu_top_data *starpu_top_data::next
  66. todo
  67. \struct starpu_top_param
  68. todo
  69. \ingroup API_StarPUTop_Interface
  70. \var unsigned int starpu_top_param::id
  71. todo
  72. \var const char *starpu_top_param::name
  73. todo
  74. \var enum starpu_top_param_type starpu_top_param::type
  75. todo
  76. \var void *starpu_top_param::value
  77. todo
  78. \var char **starpu_top_param::enum_values
  79. only for enum type can be <c>NULL</c>
  80. \var int starpu_top_param::nb_values
  81. todo
  82. \var void (*starpu_top_param::callback)(struct starpu_top_param*)
  83. todo
  84. \var int starpu_top_param::int_min_value
  85. only for integer type
  86. \var int starpu_top_param::int_max_value
  87. todo
  88. \var double starpu_top_param::double_min_value
  89. only for double type
  90. \var double starpu_top_param::double_max_value
  91. todo
  92. \var struct starpu_top_param *starpu_top_param::next
  93. todo
  94. @name Functions to call before the initialisation
  95. \ingroup API_StarPUTop_Interface
  96. \fn struct starpu_top_data *starpu_top_add_data_boolean(const char *data_name, int active)
  97. \ingroup API_StarPUTop_Interface
  98. Register a data named \p data_name of type boolean.
  99. If \p active is 0, the value will NOT be displayed to users.
  100. Any other value will make the value displayed.
  101. \fn struct starpu_top_data *starpu_top_add_data_integer(const char *data_name, int minimum_value, int maximum_value, int active)
  102. \ingroup API_StarPUTop_Interface
  103. Register a data named \p data_name of type integer. \p minimum_value
  104. and \p maximum_value will be used to define the scale in the UI.
  105. If \p active is 0, the value will NOT be displayed to users.
  106. Any other value will make the value displayed.
  107. \fn struct starpu_top_data *starpu_top_add_data_float(const char *data_name, double minimum_value, double maximum_value, int active)
  108. \ingroup API_StarPUTop_Interface
  109. Register a data named \p data_name of type float. \p minimum_value and
  110. \p maximum_value will be used to define the scale in the UI.
  111. If \p active is 0, the value will NOT be displayed to users.
  112. Any other value will make the value displayed.
  113. \fn struct starpu_top_param *starpu_top_register_parameter_boolean(const char *param_name, int *parameter_field, void (*callback)(struct starpu_top_param*))
  114. \ingroup API_StarPUTop_Interface
  115. Register a parameter named \p parameter_name, of type
  116. boolean. If not \c NULL, the \p callback function will be called when
  117. the parameter is modified by the UI.
  118. \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*))
  119. \ingroup API_StarPUTop_Interface
  120. Register a parameter named \p param_name, of type
  121. integer. \p minimum_value and \p maximum_value will be used to prevent
  122. users from setting incorrect value. If not \c NULL, the \p callback
  123. function will be called when the parameter is modified by the UI.
  124. \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*))
  125. \ingroup API_StarPUTop_Interface
  126. Register a parameter named \p param_name, of type float.
  127. \p minimum_value and \p maximum_value will be used to prevent users
  128. from setting incorrect value. If not \c NULL, the \p callback function
  129. will be called when the parameter is modified by the UI.
  130. \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*))
  131. \ingroup API_StarPUTop_Interface
  132. Register a parameter named \p param_name, of type enum.
  133. \p values and \p nb_values will be used to prevent users from setting
  134. incorrect value. If not \c NULL, the \p callback function will be
  135. called when the parameter is modified by the UI.
  136. @name Initialisation
  137. \ingroup API_StarPUTop_Interface
  138. \fn void starpu_top_init_and_wait(const char *server_name)
  139. \ingroup API_StarPUTop_Interface
  140. Must be called when all parameters and data have been
  141. registered AND initialised (for parameters). It will wait
  142. for a TOP to connect, send initialisation sentences, and wait for the
  143. GO message.
  144. @name To call after initialisation
  145. \ingroup API_StarPUTop_Interface
  146. \fn void starpu_top_update_parameter(const struct starpu_top_param *param)
  147. \ingroup API_StarPUTop_Interface
  148. Should be called after every modification of a parameter
  149. from something other than starpu_top. It notices the UI that the
  150. configuration has changed.
  151. \fn void starpu_top_update_data_boolean(const struct starpu_top_data *data, int value)
  152. \ingroup API_StarPUTop_Interface
  153. Update the boolean value of \p data to \p value the UI.
  154. \fn void starpu_top_update_data_integer(const struct starpu_top_data *data, int value)
  155. \ingroup API_StarPUTop_Interface
  156. Update the integer value of \p data to \p value the UI.
  157. \fn void starpu_top_update_data_float(const struct starpu_top_data *data, double value)
  158. \ingroup API_StarPUTop_Interface
  159. Update the float value of \p data to \p value the UI.
  160. \fn void starpu_top_task_prevision(struct starpu_task *task, int devid, unsigned long long start, unsigned long long end)
  161. \ingroup API_StarPUTop_Interface
  162. Notift the UI that \p task is planned to run from \p start to \p end, on computation-core.
  163. \fn void starpu_top_debug_log(const char *message)
  164. \ingroup API_StarPUTop_Interface
  165. When running in debug mode, display \p message in the UI.
  166. \fn void starpu_top_debug_lock(const char *message)
  167. \ingroup API_StarPUTop_Interface
  168. When running in debug mode, send \p message to the UI and wait for a
  169. continue message to return. The lock (which creates a stop-point) should be
  170. called only by the main thread. Calling it from more than one thread
  171. is not supported.
  172. */