Commit bcf7f146 authored by THIBAULT Samuel's avatar THIBAULT Samuel
Browse files

Provide an example

parent 7d5c47e5
......@@ -273,8 +273,9 @@ the application submission loop, and is thus completely stable, making it even
possible to inject the static scheduling in a native execution with the real
application.
The paragraph can then contain several kinds of scheduling directives, either to
force task placement for instance, or to guide the StarPU dynamic scheduler:
The paragraph can then contain optionally several kinds of scheduling
directives, either to force task placement for instance, or to guide the StarPU
dynamic scheduler:
<ul>
<li><tt>Priority</tt> will override the application-provided priority,
......@@ -296,13 +297,34 @@ force task placement for instance, or to guide the StarPU dynamic scheduler:
provided contiguous order, i.e. the worker will wait for task
with workerorder 0 to be submitted, then execute it, then wait
for task with workerorder 1 to be submitted, then execute it,
etc.</li>
etc. For a given worker, the Workerorder fields of the tasks made
to be executed on it thus have to be strictly contiguous,
starting from 0.</li>
</ul>
For instance, a completely static schedule can be set by setting, for each task,
both the <tt>SpecificWorker</tt> and the <tt>Workerorder</tt> field, thus
respectively specifying for each task on which worker it shall run, and its
ordering on that worker.
ordering on that worker. For instance:
<tt>
<pre>
SubmitOrder: 0
SpecificWorker: 0
Workerorder: 1
SubmitOrder: 1
SpecificWorker: 1
Workerorder: 0
SubmitOrder: 2
SpecificWorker: 0
Workerorder: 0
</pre>
</tt>
will force task 0 and 2 to be executed on worker 0 while task 1 will be executed
on worker 1, and 2 will be executed before task 0.
</p>
<p>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment