Selaa lähdekoodia

advise to use priorities

Samuel Thibault 14 vuotta sitten
vanhempi
commit
7dc5cbc87c
1 muutettua tiedostoa jossa 11 lisäystä ja 0 poistoa
  1. 11 0
      doc/starpu.texi

+ 11 - 0
doc/starpu.texi

@@ -1366,6 +1366,7 @@ TODO: improve!
 @menu
 @menu
 * Data management::
 * Data management::
 * Task submission::
 * Task submission::
+* Task priorities::
 * Task scheduling policy::
 * Task scheduling policy::
 * Task distribution vs Data transfer::
 * Task distribution vs Data transfer::
 * Power-based scheduling::
 * Power-based scheduling::
@@ -1415,6 +1416,16 @@ submitted, and a mere @code{starpu_task_wait_for_all} call be done to wait for
 termination. StarPU will then be able to rework the whole schedule, overlap
 termination. StarPU will then be able to rework the whole schedule, overlap
 computation with communication, manage accelerator local memory usage, etc.
 computation with communication, manage accelerator local memory usage, etc.
 
 
+@node Task priorities
+@section Task priorities
+
+By default, StarPU will consider the tasks in the order they are submitted by
+the application. If the application programmer knows that some tasks should
+be performed in priority (for instance because their output is needed by many
+other tasks and may thus be a bottleneck if not executed early enough), the
+@code{priority} field of the task structure should be set to transmit the
+priority information to StarPU.
+
 @node Task scheduling policy
 @node Task scheduling policy
 @section Task scheduling policy
 @section Task scheduling policy