Browse Source

add doc about empty ctxs

Andra Hugo 12 years ago
parent
commit
e4ff764a40
1 changed files with 8 additions and 0 deletions
  1. 8 0
      doc/chapters/sched_ctx.texi

+ 8 - 0
doc/chapters/sched_ctx.texi

@@ -13,6 +13,7 @@ TODO: improve!
 * Create a Context::
 * Create a Context::
 * Modify a Context::
 * Modify a Context::
 * Delete a Context::
 * Delete a Context::
+* Empty Context::
 @end menu
 @end menu
 
 
 @node General Idea
 @node General Idea
@@ -100,3 +101,10 @@ starpu_sched_ctx_delete(sched_ctx2);
 starpu_sched_ctx_delete(sched_ctx1);
 starpu_sched_ctx_delete(sched_ctx1);
 @end smallexample
 @end smallexample
 @end cartouche
 @end cartouche
+
+
+@node Empty Context
+@section Empty Context
+A context may not have any resources at the begining or at a certain moment of the execution. Task can still be submitted to these contexts and they will execute them as soon as they will have resources. 
+A list of tasks pending to be executed is kept and when workers are added to the contexts the tasks are submitted. However, if no resources are allocated the program will not terminate.
+If these tasks have not much priority the programmer can forbid the application to submitted them by calling the function @code{starpu_sched_ctx_stop_task_submission}.