top.doxy 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. /*
  2. * This file is part of the StarPU Handbook.
  3. * Copyright (C) 2009--2011 Universit@'e de Bordeaux 1
  4. * Copyright (C) 2010, 2011, 2012, 2013 Centre National de la Recherche Scientifique
  5. * Copyright (C) 2011, 2012 Institut National de Recherche en Informatique et Automatique
  6. * See the file version.doxy for copying conditions.
  7. */
  8. /*! \defgroup StarPU-Top_Interface StarPU-Top Interface
  9. \struct starpu_top_data
  10. \brief todo
  11. \ingroup StarPU-Top_Interface
  12. \var starpu_top_data::id
  13. todo
  14. \var starpu_top_data::name
  15. todo
  16. \var starpu_top_data::int_min_value
  17. todo
  18. \var starpu_top_data::int_max_value
  19. todo
  20. \var starpu_top_data::double_min_value
  21. todo
  22. \var starpu_top_data::double_max_value
  23. todo
  24. \var starpu_top_data::active
  25. todo
  26. \var starpu_top_data::type
  27. todo
  28. \var starpu_top_data::next
  29. todo
  30. \struct starpu_top_param
  31. \brief todo
  32. \ingroup StarPU-Top_Interface
  33. \var starpu_top_param::id
  34. todo
  35. \var starpu_top_param::name
  36. todo
  37. \var starpu_top_param::type
  38. todo
  39. \var starpu_top_param::value
  40. todo
  41. \var starpu_top_param::enum_values
  42. only for enum type can be NULL
  43. \var starpu_top_param::nb_values
  44. todo
  45. \var starpu_top_param::callback
  46. todo
  47. \var starpu_top_param::int_min_value
  48. only for integer type
  49. \var starpu_top_param::int_max_value
  50. todo
  51. \var starpu_top_param::double_min_value
  52. only for double type
  53. \var starpu_top_param::double_max_value
  54. todo
  55. \var starpu_top_param::next
  56. todo
  57. @name Functions to call before the initialisation
  58. \ingroup StarPU-Top_Interface
  59. \fn struct starpu_top_data *starpu_top_add_data_boolean(const char* data_name, int active)
  60. \ingroup StarPU-Top_Interface
  61. This fonction register a data named data_name of type boolean.
  62. If \p active=0, the value will NOT be displayed to user by default.
  63. Any other value will make the value displayed by default.
  64. \fn struct starpu_top_data * starpu_top_add_data_integer(const char* data_name, int minimum_value, int maximum_value, int active)
  65. \ingroup StarPU-Top_Interface
  66. This fonction register a data named \p data_name of type integer. The
  67. minimum and maximum value will be usefull to define the scale in UI.
  68. If \p active=0, the value will NOT be displayed to user by default.
  69. Any other value will make the value displayed by default.
  70. \fn struct starpu_top_data* starpu_top_add_data_float(const char* data_name, double minimum_value, double maximum_value, int active)
  71. \ingroup StarPU-Top_Interface
  72. This fonction register a data named data_name of type float. The
  73. minimum and maximum value will be usefull to define the scale in UI.
  74. If \p active=0, the value will NOT be displayed to user by default.
  75. Any other value will make the value displayed by default.
  76. \fn struct starpu_top_param* starpu_top_register_parameter_boolean(const char* param_name, int* parameter_field, void (*callback)(struct starpu_top_param*))
  77. \ingroup StarPU-Top_Interface
  78. This fonction register a parameter named \p parameter_name, of type
  79. boolean. The \p callback fonction will be called when the parameter is
  80. modified by UI, and can be null.
  81. \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*))
  82. \ingroup StarPU-Top_Interface
  83. his fonction register a parameter named \p param_name, of type
  84. integer. Minimum and maximum value will be used to prevent user seting
  85. incorrect value. The \p callback fonction will be called when the
  86. parameter is modified by UI, and can be null.
  87. \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*))
  88. \ingroup StarPU-Top_Interface
  89. This fonction register a parameter named \p param_name, of type float.
  90. Minimum and maximum value will be used to prevent user seting
  91. incorrect value. The \p callback fonction will be called when the
  92. parameter is modified by UI, and can be null.
  93. \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*))
  94. \ingroup StarPU-Top_Interface
  95. This fonction register a parameter named \p param_name, of type enum.
  96. Minimum and maximum value will be used to prevent user seting
  97. incorrect value. The \p callback fonction will be called when the
  98. parameter is modified by UI, and can be null.
  99. @name Initialisation
  100. \ingroup StarPU-Top_Interface
  101. \fn void starpu_top_init_and_wait(const char *server_name)
  102. \ingroup StarPU-Top_Interface
  103. This function must be called when all parameters and data have been
  104. registered AND initialised (for parameters). This function will wait
  105. for a TOP to connect, send initialisation sentences, and wait for the
  106. GO message.
  107. @name To call after initialisation
  108. \ingroup StarPU-Top_Interface
  109. \fn void starpu_top_update_parameter(const struct starpu_top_param *param)
  110. \ingroup StarPU-Top_Interface
  111. This function should be called after every modification of a parameter
  112. from something other than starpu_top. This fonction notice UI that the
  113. configuration changed.
  114. \fn void starpu_top_update_data_boolean(const struct starpu_top_data *data, int value)
  115. \ingroup StarPU-Top_Interface
  116. This function updates the value of the starpu_top_data on UI.
  117. \fn void starpu_top_update_data_integer(const struct starpu_top_data *data, int value)
  118. \ingroup StarPU-Top_Interface
  119. This function updates the value of the starpu_top_data on UI.
  120. \fn void starpu_top_update_data_float(const struct starpu_top_data *data, double value)
  121. \ingroup StarPU-Top_Interface
  122. This function updates the value of the starpu_top_data on UI.
  123. \fn void starpu_top_task_prevision(struct starpu_task *task, int devid, unsigned long long start, unsigned long long end)
  124. \ingroup StarPU-Top_Interface
  125. This function notifies UI than the task have been planed to run from start to end, on computation-core.
  126. \fn void starpu_top_debug_log(const char *message)
  127. \ingroup StarPU-Top_Interface
  128. This function is useful in debug mode. The starpu developper doesn't
  129. need to check if the debug mode is active. This is checked by
  130. starpu_top itsefl. It just send a message to display by UI.
  131. \fn void starpu_top_debug_lock(const char *message)
  132. \ingroup StarPU-Top_Interface
  133. This function is useful in debug mode. The starpu developper doesn't
  134. need to check if the debug mode is active. This is checked by
  135. starpu_top itsefl. It send a message and wait for a continue message
  136. from UI to return. The lock (wich create a stop-point) should be
  137. called only by the main thread. Calling it from more than one thread
  138. is not supported.
  139. */