parallel_tasks.doxy 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 API_Parallel_Tasks Parallel Tasks
  9. \fn int starpu_combined_worker_get_size(void)
  10. \ingroup API_Parallel_Tasks
  11. Return the size of the current combined worker, i.e. the total number
  12. of cpus running the same task in the case of ::STARPU_SPMD parallel
  13. tasks, or the total number of threads that the task is allowed to
  14. start in the case of ::STARPU_FORKJOIN parallel tasks.
  15. \fn int starpu_combined_worker_get_rank(void)
  16. \ingroup API_Parallel_Tasks
  17. Return the rank of the current thread within the combined worker. Can
  18. only be used in ::STARPU_FORKJOIN parallel tasks, to know which part
  19. of the task to work on.
  20. \fn unsigned starpu_combined_worker_get_count(void)
  21. \ingroup API_Parallel_Tasks
  22. Return the number of different combined workers.
  23. \fn int starpu_combined_worker_get_id(void)
  24. \ingroup API_Parallel_Tasks
  25. Return the identifier of the current combined worker.
  26. \fn int starpu_combined_worker_assign_workerid(int nworkers, int workerid_array[])
  27. \ingroup API_Parallel_Tasks
  28. Register a new combined worker and get its identifier
  29. \fn int starpu_combined_worker_get_description(int workerid, int *worker_size, int **combined_workerid)
  30. \ingroup API_Parallel_Tasks
  31. Get the description of a combined worker
  32. \fn int starpu_combined_worker_can_execute_task(unsigned workerid, struct starpu_task *task, unsigned nimpl)
  33. \ingroup API_Parallel_Tasks
  34. Variant of starpu_worker_can_execute_task() compatible with combined
  35. workers
  36. \fn void starpu_parallel_task_barrier_init(struct starpu_task*task, int workerid)
  37. \ingroup API_Parallel_Tasks
  38. Initialise the barrier for the parallel task, and dispatch the task
  39. between the different combined workers.
  40. */