Browse Source

document how to set worker with starpu_task_insert

Samuel Thibault 6 years ago
parent
commit
c47f7b95f0
1 changed files with 6 additions and 0 deletions
  1. 6 0
      doc/doxygen/chapters/320_scheduling.doxy

+ 6 - 0
doc/doxygen/chapters/320_scheduling.doxy

@@ -232,6 +232,12 @@ task->execute_on_a_specific_worker = 1;
 task->workerid = starpu_worker_get_by_type(STARPU_CUDA_WORKER, 0);
 \endcode
 
+or equivalently
+
+\code{.c}
+starpu_task_insert(&cl, ..., STARPU_EXECUTE_ON_WORKER, starpu_worker_get_by_type(STARPU_CUDA_WORKER, 0), ...);
+\endcode
+
 One can also specify a set worker(s) which are allowed to take the task, as an
 array of bit, for instance to allow workers 2 and 42: