node_composed.h 807 B

123456789101112131415161718
  1. #ifndef __NODE_COMPOSED_H__
  2. #define __NODE_COMPOSED_H__
  3. #include <starpu_sched_node.h>
  4. struct _starpu_composed_sched_node_recipe;
  5. //create empty recipe
  6. struct _starpu_composed_sched_node_recipe * starpu_sched_node_create_recipe(void);
  7. struct _starpu_composed_sched_node_recipe * starpu_sched_node_create_recipe_singleton(struct starpu_sched_node *(*create_node)(void * arg), void * arg);
  8. //add a function creation node to recipe
  9. void starpu_sched_recipe_add_node(struct _starpu_composed_sched_node_recipe * recipe, struct starpu_sched_node *(*create_node)(void * arg), void * arg);
  10. void _starpu_destroy_composed_sched_node_recipe(struct _starpu_composed_sched_node_recipe *);
  11. struct starpu_sched_node * starpu_sched_node_composed_node_create(struct _starpu_composed_sched_node_recipe * recipe);
  12. #endif