modularized_scheduler.doxy 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453
  1. /*
  2. * This file is part of the StarPU Handbook.
  3. * Copyright (C) 2013 Simon Archipoff
  4. * Copyright (C) 2009--2011 Universit@'e de Bordeaux
  5. * Copyright (C) 2014, 2015, 2016 CNRS
  6. * Copyright (C) 2013, 2014 INRIA
  7. * See the file version.doxy for copying conditions.
  8. */
  9. /*! \defgroup API_Modularized_Scheduler Modularized Scheduler Interface
  10. \enum starpu_sched_component_properties
  11. \ingroup API_Modularized_Scheduler
  12. flags for starpu_sched_component::properties
  13. \var starpu_sched_component_properties::STARPU_SCHED_COMPONENT_HOMOGENEOUS
  14. \ingroup API_Modularized_Scheduler
  15. indicate that all workers have the same starpu_worker_archtype
  16. \var starpu_sched_component_properties::STARPU_SCHED_COMPONENT_SINGLE_MEMORY_NODE
  17. \ingroup API_Modularized_Scheduler
  18. indicate that all workers have the same memory component
  19. \def STARPU_SCHED_COMPONENT_IS_HOMOGENEOUS
  20. \ingroup API_Modularized_Scheduler
  21. indicate if component is homogeneous
  22. \def STARPU_SCHED_COMPONENT_IS_SINGLE_MEMORY_NODE
  23. \ingroup API_Modularized_Scheduler
  24. indicate if all workers have the same memory component
  25. \struct starpu_sched_component
  26. \ingroup API_Modularized_Scheduler
  27. This structure represent a scheduler module. A scheduler is a
  28. tree-like structure of them, some parts of scheduler can be shared by
  29. several contexes to perform some local optimisations, so, for all
  30. components, a list of parent is defined indexed by sched_ctx_id. They
  31. embed there specialised method in a pseudo object-style, so calls are
  32. like component->push_task(component,task)
  33. \var struct starpu_sched_tree *starpu_sched_component::tree
  34. The tree containing the component
  35. \var struct starpu_bitmap *starpu_sched_component::workers
  36. this member contain the set of underlying workers
  37. \var starpu_sched_component::workers_in_ctx
  38. this member contain the subset of starpu_sched_component::workers that is currently available in the context
  39. The push method should take this member into account.
  40. this member is set with :
  41. component->workers UNION tree->workers UNION
  42. component->child[i]->workers_in_ctx iff exist x such as component->children[i]->parents[x] == component
  43. \var void *starpu_sched_component::data
  44. private data
  45. \var int starpu_sched_component::nchildren
  46. the number of compoments's children
  47. \var struct starpu_sched_component **starpu_sched_component::children
  48. the vector of component's children
  49. \var int starpu_sched_component::nparents
  50. the numbers of component's parents
  51. \var struct starpu_sched_component **starpu_sched_component::parents
  52. the vector of component's parents
  53. \var void(*starpu_sched_component::add_child)(struct starpu_sched_component *component, struct starpu_sched_component *child)
  54. add a child to component
  55. \var void(*starpu_sched_component::remove_child)(struct starpu_sched_component *component, struct starpu_sched_component *child)
  56. remove a child from component
  57. \var void(*starpu_sched_component::add_parent)(struct starpu_sched_component *component, struct starpu_sched_component *parent)
  58. todo
  59. \var void(*starpu_sched_component::remove_parent)(struct starpu_sched_component *component, struct starpu_sched_component *parent)
  60. todo
  61. \var int (*starpu_sched_component::push_task)(struct starpu_sched_component *, struct starpu_task *)
  62. push a task in the scheduler module. this function is called to
  63. push a task on component subtree, this can either perform a
  64. recursive call on a child or store the task in the component,
  65. then it will be returned by a further pull_task call.
  66. the caller must ensure that component is able to execute task.
  67. \var struct starpu_task * (*starpu_sched_component::pull_task)(struct starpu_sched_component *)
  68. pop a task from the scheduler module. this function is called by workers to get a task from their
  69. parents. this function should first return a locally stored task
  70. or perform a recursive call on the parents.
  71. the task returned by this function is executable by the caller
  72. \var int (*starpu_sched_component::can_push)(struct starpu_sched_component *component)
  73. This function is called by a component which implements a queue,
  74. allowing it to signify to its parents that an empty slot is
  75. available in its queue. The basic implementation of this function
  76. is a recursive call to its parents, the user have to specify a
  77. personally-made function to catch those calls.
  78. \var void (*starpu_sched_component::can_pull)(struct starpu_sched_component *component)
  79. This function allow a component to wake up a worker. It is
  80. currently called by component which implements a queue, to
  81. signify to its children that a task have been pushed in its local
  82. queue, and is available to been popped by a worker, for example.
  83. The basic implementation of this function is a recursive call to
  84. its children, until at least one worker have been woken up.
  85. \var double (*starpu_sched_component::estimated_load)(struct starpu_sched_component *component)
  86. is an heuristic to compute load of scheduler module. Basically the number of tasks divided by the sum
  87. of relatives speedup of workers available in context.
  88. estimated_load(component) = sum(estimated_load(component_children)) + nb_local_tasks / average(relative_speedup(underlying_worker))
  89. \var starpu_sched_component::estimated_end
  90. return the time when a worker will enter in starvation. This function is relevant only if the task->predicted
  91. member has been set.
  92. \var void (*starpu_sched_component::deinit_data)(struct starpu_sched_component *component)
  93. called by starpu_sched_component_destroy. Should free data allocated during creation
  94. \var void (*starpu_sched_component::notify_change_workers)(struct starpu_sched_component *component)
  95. this function is called for each component when workers are added or removed from a context
  96. \var int starpu_sched_component::properties
  97. todo
  98. \var hwloc_obj_t starpu_sched_component::obj
  99. the hwloc object associated to scheduler module. points to the
  100. part of topology that is binded to this component, eg: a numa
  101. node for a ws component that would balance load between
  102. underlying sockets
  103. \struct starpu_sched_tree
  104. \ingroup API_Modularized_Scheduler
  105. The actual scheduler
  106. \var struct starpu_sched_component *starpu_sched_tree::root
  107. this is the entry module of the scheduler
  108. \var struct starpu_bitmap *starpu_sched_tree::workers
  109. this is the set of workers available in this context, this value is used to mask workers in modules
  110. \var unsigned starpu_sched_tree::sched_ctx_id
  111. the context id of the scheduler
  112. \var starpu_pthread_mutex_t starpu_sched_tree::lock
  113. this lock is used to protect the scheduler, it is taken in
  114. read mode pushing a task and in write mode for adding or
  115. removing workers
  116. \var struct starpu_sched_component *starpu_sched_tree::worker_components[STARPU_NMAXWORKERS]
  117. worker components
  118. @name Scheduling Tree API
  119. \ingroup API_Modularized_Scheduler
  120. \fn struct starpu_sched_tree *starpu_sched_tree_create(unsigned sched_ctx_id)
  121. \ingroup API_Modularized_Scheduler
  122. create a empty initialized starpu_sched_tree
  123. \fn void starpu_sched_tree_destroy(struct starpu_sched_tree *tree)
  124. \ingroup API_Modularized_Scheduler
  125. destroy tree and free all non shared component in it.
  126. \fn void starpu_sched_tree_update_workers(struct starpu_sched_tree *t)
  127. \ingroup API_Modularized_Scheduler
  128. recursively set all starpu_sched_component::workers, do not take into account shared parts (except workers).
  129. \fn void starpu_sched_tree_update_workers_in_ctx(struct starpu_sched_tree *t)
  130. \ingroup API_Modularized_Scheduler
  131. recursively set all starpu_sched_component::workers_in_ctx, do not take into account shared parts (except workers)
  132. \fn int starpu_sched_tree_push_task(struct starpu_task *task)
  133. \ingroup API_Modularized_Scheduler
  134. compatibility with starpu_sched_policy interface
  135. \fn struct starpu_task *starpu_sched_tree_pop_task(unsigned sched_ctx)
  136. \ingroup API_Modularized_Scheduler
  137. compatibility with starpu_sched_policy interface
  138. \fn void starpu_sched_tree_add_workers(unsigned sched_ctx_id, int *workerids, unsigned nworkers)
  139. \ingroup API_Modularized_Scheduler
  140. compatibility with starpu_sched_policy interface
  141. \fn void starpu_sched_tree_remove_workers(unsigned sched_ctx_id, int *workerids, unsigned nworkers)
  142. \ingroup API_Modularized_Scheduler
  143. compatibility with starpu_sched_policy interface
  144. \fn void starpu_sched_component_connect(struct starpu_sched_component *parent, struct starpu_sched_component *child)
  145. \ingroup API_Modularized_Scheduler
  146. Attaches component \p child to parent \p parent. Some component may accept only one child, others accept several (e.g. MCT)
  147. @name Generic Scheduling Component API
  148. \ingroup API_Modularized_Scheduler
  149. \fn struct starpu_sched_component *starpu_sched_component_create(struct starpu_sched_tree *tree, const char *name)
  150. \ingroup API_Modularized_Scheduler
  151. allocate and initialize component field with defaults values :
  152. .pop_task make recursive call on father
  153. .estimated_load compute relative speedup and tasks in sub tree
  154. .estimated_end return the average of recursive call on children
  155. .add_child is starpu_sched_component_add_child
  156. .remove_child is starpu_sched_component_remove_child
  157. .notify_change_workers does nothing
  158. .deinit_data does nothing
  159. \fn void starpu_sched_component_destroy(struct starpu_sched_component *component)
  160. \ingroup API_Modularized_Scheduler
  161. free data allocated by starpu_sched_component_create and call component->deinit_data(component)
  162. set to null the member starpu_sched_component::fathers[sched_ctx_id] of all child if its equal to \p component
  163. \fn void starpu_sched_component_destroy_rec(struct starpu_sched_component *component)
  164. \ingroup API_Modularized_Scheduler
  165. recursively destroy non shared parts of a \p component 's tree
  166. \fn int starpu_sched_component_can_execute_task(struct starpu_sched_component *component, struct starpu_task *task)
  167. \ingroup API_Modularized_Scheduler
  168. return true iff \p component can execute \p task, this function take into account the workers available in the scheduling context
  169. \fn int starpu_sched_component_execute_preds(struct starpu_sched_component *component, struct starpu_task *task, double *length)
  170. \ingroup API_Modularized_Scheduler
  171. return a non null value if \p component can execute \p task.
  172. write the execution prediction length for the best implementation of the best worker available and write this at \p length address.
  173. this result is more relevant if starpu_sched_component::is_homogeneous is non null.
  174. if a worker need to be calibrated for an implementation, nan is set to \p length.
  175. \fn double starpu_sched_component_transfer_length(struct starpu_sched_component *component, struct starpu_task *task)
  176. \ingroup API_Modularized_Scheduler
  177. return the average time to transfer \p task data to underlying \p component workers.
  178. @name Worker Component API
  179. \ingroup API_Modularized_Scheduler
  180. \fn struct starpu_sched_component *starpu_sched_component_worker_get(unsigned sched_ctx, int workerid)
  181. \ingroup API_Modularized_Scheduler
  182. return the struct starpu_sched_component corresponding to \p workerid. Undefined if \p workerid is not a valid workerid
  183. \fn int starpu_sched_component_worker_get_workerid(struct starpu_sched_component *worker_component)
  184. \ingroup API_Modularized_Scheduler
  185. return the workerid of \p worker_component, undefined if starpu_sched_component_is_worker(worker_component) == 0
  186. \fn int starpu_sched_component_is_worker(struct starpu_sched_component *component)
  187. \ingroup API_Modularized_Scheduler
  188. return true iff \p component is a worker component
  189. \fn int starpu_sched_component_is_simple_worker(struct starpu_sched_component *component)
  190. \ingroup API_Modularized_Scheduler
  191. return true iff \p component is a simple worker component
  192. \fn int starpu_sched_component_is_combined_worker(struct starpu_sched_component *component)
  193. \ingroup API_Modularized_Scheduler
  194. return true iff \p component is a combined worker component
  195. \fn void starpu_sched_component_worker_pre_exec_hook(struct starpu_task *task)
  196. \ingroup API_Modularized_Scheduler
  197. compatibility with starpu_sched_policy interface
  198. update predictions for workers
  199. \fn void starpu_sched_component_worker_post_exec_hook(struct starpu_task *task)
  200. \ingroup API_Modularized_Scheduler
  201. compatibility with starpu_sched_policy interface
  202. @name Flow-control Fifo Component API
  203. \ingroup API_Modularized_Scheduler
  204. \struct starpu_sched_component_fifo_data
  205. \ingroup API_Modularized_Scheduler
  206. \var unsigned starpu_sched_component_fifo_data::ntasks_threshold
  207. todo
  208. \var double starpu_sched_component_fifo_data::exp_len_threshold
  209. todo
  210. \fn struct starpu_sched_component *starpu_sched_component_fifo_create(struct starpu_sched_tree *tree, struct starpu_sched_component_fifo_data *fifo_data)
  211. \ingroup API_Modularized_Scheduler
  212. Return a struct starpu_sched_component with a fifo. A stable sort is performed according to tasks priorities.
  213. A push_task call on this component does not perform recursive calls, underlying components will have to call pop_task to get it.
  214. starpu_sched_component::estimated_end function compute the estimated length by dividing the sequential length by the number of underlying workers. Do not take into account tasks that are currently executed.
  215. \fn int starpu_sched_component_is_fifo(struct starpu_sched_component *component)
  216. \ingroup API_Modularized_Scheduler
  217. return true iff \p component is a fifo component
  218. @name Flow-control Prio Component API
  219. \ingroup API_Modularized_Scheduler
  220. \struct starpu_sched_component_prio_data
  221. \ingroup API_Modularized_Scheduler
  222. \var unsigned starpu_sched_component_prio_data::ntasks_threshold
  223. todo
  224. \var double starpu_sched_component_prio_data::exp_len_threshold
  225. todo
  226. \fn struct starpu_sched_component *starpu_sched_component_prio_create(struct starpu_sched_tree *tree, struct starpu_sched_component_prio_data *prio_data)
  227. \ingroup API_Modularized_Scheduler
  228. todo
  229. \fn int starpu_sched_component_is_prio(struct starpu_sched_component *component)
  230. \ingroup API_Modularized_Scheduler
  231. todo
  232. @name Resource-mapping Work-Stealing Component API
  233. \ingroup API_Modularized_Scheduler
  234. \fn struct starpu_sched_component *starpu_sched_component_work_stealing_create(struct starpu_sched_tree *tree, void *arg)
  235. \ingroup API_Modularized_Scheduler
  236. return a component that perform a work stealing scheduling. Tasks are pushed in a round robin way. estimated_end return the average of expected length of fifos, starting at the average of the expected_end of his children. When a worker have to steal a task, it steal a task in a round robin way, and get the last pushed task of the higher priority.
  237. \fn int starpu_sched_tree_work_stealing_push_task(struct starpu_task *task)
  238. \ingroup API_Modularized_Scheduler
  239. undefined if there is no work stealing component in the scheduler. If any, \p task is pushed in a default way if the caller is the application, and in the caller's fifo if its a worker.
  240. \fn int starpu_sched_component_is_work_stealing(struct starpu_sched_component *component)
  241. \ingroup API_Modularized_Scheduler
  242. return true iff \p component is a work stealing component
  243. @name Resource-mapping Random Component API
  244. \ingroup API_Modularized_Scheduler
  245. \fn struct starpu_sched_component *starpu_sched_component_random_create(struct starpu_sched_tree *tree, void *arg)
  246. \ingroup API_Modularized_Scheduler
  247. create a component that perform a random scheduling
  248. \fn int starpu_sched_component_is_random(struct starpu_sched_component *)
  249. \ingroup API_Modularized_Scheduler
  250. return true iff \p component is a random component
  251. @name Resource-mapping Eager Component API
  252. \ingroup API_Modularized_Scheduler
  253. \fn struct starpu_sched_component *starpu_sched_component_eager_create(struct starpu_sched_tree *tree, void *arg)
  254. \ingroup API_Modularized_Scheduler
  255. todo
  256. \fn int starpu_sched_component_is_eager(struct starpu_sched_component *)
  257. \ingroup API_Modularized_Scheduler
  258. todo
  259. @name Resource-mapping Eager-Calibration Component API
  260. \ingroup API_Modularized_Scheduler
  261. \fn struct starpu_sched_component *starpu_sched_component_eager_calibration_create(struct starpu_sched_tree *tree, void *arg)
  262. \ingroup API_Modularized_Scheduler
  263. todo
  264. \fn int starpu_sched_component_is_eager_calibration(struct starpu_sched_component *)
  265. \ingroup API_Modularized_Scheduler
  266. todo
  267. @name Resource-mapping MCT Component API
  268. \ingroup API_Modularized_Scheduler
  269. \struct starpu_sched_component_mct_data
  270. \ingroup API_Modularized_Scheduler
  271. \var double starpu_sched_component_mct_data::alpha
  272. todo
  273. \var double starpu_sched_component_mct_data::beta
  274. todo
  275. \var double starpu_sched_component_mct_data::_gamma
  276. todo
  277. \var double starpu_sched_component_mct_data::idle_power
  278. todo
  279. \fn struct starpu_sched_component *starpu_sched_component_mct_create(struct starpu_sched_tree *tree, struct starpu_sched_component_mct_data *mct_data)
  280. \ingroup API_Modularized_Scheduler
  281. create a component with mct_data paremeters. the mct component doesnt
  282. do anything but pushing tasks on no_perf_model_component and
  283. calibrating_component
  284. \fn int starpu_sched_component_is_mct(struct starpu_sched_component *component);
  285. \ingroup API_Modularized_Scheduler
  286. todo
  287. @name Resource-mapping Heft Component API
  288. \ingroup API_Modularized_Scheduler
  289. \fn struct starpu_sched_component *starpu_sched_component_heft_create(struct starpu_sched_tree *tree, struct starpu_sched_component_mct_data *mct_data)
  290. \ingroup API_Modularized_Scheduler
  291. this component perform a heft scheduling
  292. \fn int starpu_sched_component_is_heft(struct starpu_sched_component *component)
  293. \ingroup API_Modularized_Scheduler
  294. return true iff \p component is a heft component
  295. @name Special-purpose Best_Implementation Component API
  296. \ingroup API_Modularized_Scheduler
  297. \fn struct starpu_sched_component *starpu_sched_component_best_implementation_create(struct starpu_sched_tree *tree, void *arg)
  298. \ingroup API_Modularized_Scheduler
  299. Select the implementation that offer the shortest computation length for the first worker that can execute the task.
  300. Or an implementation that need to be calibrated.
  301. Also set starpu_task::predicted and starpu_task::predicted_transfer for memory component of the first suitable workerid.
  302. If starpu_sched_component::push method is called and starpu_sched_component::nchild > 1 the result is undefined.
  303. @name Special-purpose Perfmodel_Select Component API
  304. \ingroup API_Modularized_Scheduler
  305. \struct starpu_sched_component_perfmodel_select_data
  306. \ingroup API_Modularized_Scheduler
  307. \var struct starpu_sched_component *starpu_sched_component_perfmodel_select_data::calibrator_component
  308. todo
  309. \var struct starpu_sched_component *starpu_sched_component_perfmodel_select_data::no_perfmodel_component
  310. todo
  311. \var struct starpu_sched_component *starpu_sched_component_perfmodel_select_data::perfmodel_component
  312. todo
  313. \fn struct starpu_sched_component *starpu_sched_component_perfmodel_select_create(struct starpu_sched_tree *tree, struct starpu_sched_component_perfmodel_select_data *perfmodel_select_data)
  314. \ingroup API_Modularized_Scheduler
  315. todo
  316. \fn int starpu_sched_component_is_perfmodel_select(struct starpu_sched_component *component)
  317. \ingroup API_Modularized_Scheduler
  318. todo
  319. @name Recipe Component API
  320. \ingroup API_Modularized_Scheduler
  321. \struct starpu_sched_component_composed_recipe
  322. \ingroup API_Modularized_Scheduler
  323. parameters for starpu_sched_component_composed_component_create
  324. \fn struct starpu_sched_component_composed_recipe *starpu_sched_component_composed_recipe_create(void)
  325. \ingroup API_Modularized_Scheduler
  326. return an empty recipe for a composed component, it should not be used without modification
  327. \fn struct starpu_sched_component_composed_recipe *starpu_sched_component_composed_recipe_create_singleton(struct starpu_sched_component *(*create_component)(struct starpu_sched_tree *tree, void *arg), void *arg)
  328. \ingroup API_Modularized_Scheduler
  329. return a recipe to build a composed component with a \p create_component
  330. \fn void starpu_sched_component_composed_recipe_add(struct starpu_sched_component_composed_recipe *recipe, struct starpu_sched_component *(*create_component)(struct starpu_sched_tree *tree, void *arg), void *arg)
  331. \ingroup API_Modularized_Scheduler
  332. add \p create_component under all previous components in recipe
  333. \fn void starpu_sched_component_composed_recipe_destroy(struct starpu_sched_component_composed_recipe *)
  334. \ingroup API_Modularized_Scheduler
  335. destroy composed_sched_component, this should be done after starpu_sched_component_composed_component_create was called
  336. \fn struct starpu_sched_component *starpu_sched_component_composed_component_create(struct starpu_sched_tree *tree, struct starpu_sched_component_composed_recipe *recipe)
  337. \ingroup API_Modularized_Scheduler
  338. create a component that behave as all component of recipe where linked. Except that you cant use starpu_sched_component_is_foo function
  339. if recipe contain a single create_foo arg_foo pair, create_foo(arg_foo) is returned instead of a composed component
  340. \struct starpu_sched_component_specs
  341. \ingroup API_Modularized_Scheduler
  342. Define how build a scheduler according to topology. Each level (except for hwloc_machine_composed_sched_component) can be NULL, then
  343. the level is just skipped. Bugs everywhere, do not rely on.
  344. \var struct starpu_sched_component_composed_recipe *starpu_sched_specs::hwloc_machine_composed_sched_component
  345. the composed component to put on the top of the scheduler
  346. this member must not be NULL as it is the root of the topology
  347. \var struct starpu_sched_component_composed_recipe *starpu_sched_specs::hwloc_component_composed_sched_component
  348. the composed component to put for each memory component
  349. \var struct starpu_sched_component_composed_recipe *starpu_sched_specs::hwloc_socket_composed_sched_component
  350. the composed component to put for each socket
  351. \var struct starpu_sched_component_composed_recipe *starpu_sched_specs::hwloc_cache_composed_sched_component
  352. the composed component to put for each cache
  353. \var struct starpu_sched_component_composed_recipe *(*starpu_sched_specs::worker_composed_sched_component)(enum starpu_worker_archtype archtype)
  354. a function that return a starpu_sched_component_composed_recipe to put on top of a worker of type \p archtype.
  355. NULL is a valid return value, then no component will be added on top
  356. \var starpu_sched_specs::mix_heterogeneous_workers
  357. this flag is a dirty hack because of the poor expressivity of this interface. As example, if you want to build
  358. a heft component with a fifo component per numa component, and you also have GPUs, if this flag is set, GPUs will share those fifos.
  359. If this flag is not set, a new fifo will be built for each of them (if they have the same starpu_perf_arch and the same
  360. numa component it will be shared. it indicates if heterogenous workers should be brothers or cousins, as example, if a gpu and a cpu should share or not there numa node
  361. \fn struct starpu_sched_tree *starpu_sched_component_make_scheduler(unsigned sched_ctx_id, struct starpu_sched_component_specs s)
  362. \ingroup API_Modularized_Scheduler
  363. this function build a scheduler for \p sched_ctx_id according to \p s and the hwloc topology of the machine.
  364. \fn int starpu_sched_component_push_task(struct starpu_sched_component *from, struct starpu_sched_component *to, struct starpu_task *task)
  365. \ingroup API_Modularized_Scheduler
  366. Push a task to a component. This is a helper for <c>component->push_task(component, task)</c> plus tracing.
  367. \fn struct starpu_task *starpu_sched_component_pull_task(struct starpu_sched_component *from, struct starpu_sched_component *to)
  368. \ingroup API_Modularized_Scheduler
  369. Pull a task from a component. This is a helper for <c>component->pull_task(component)</c> plus tracing.
  370. */