Browse Source

examples/sched_ctx/nested_sched_ctxs.c: specify the task is parallel

Nathalie Furmento 10 years ago
parent
commit
3fcbeee67e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      examples/sched_ctx/nested_sched_ctxs.c

+ 2 - 0
examples/sched_ctx/nested_sched_ctxs.c

@@ -161,6 +161,7 @@ int main(int argc, char **argv)
 
 		task->cl = &sched_ctx_codelet;
 		task->cl_arg = sched_ctx1;
+		task->possibly_parallel = 1;
 
 		/*submit tasks to context*/
 		ret = starpu_task_submit_to_ctx(task,sched_ctx1);
@@ -174,6 +175,7 @@ int main(int argc, char **argv)
 
 		task->cl = &sched_ctx_codelet;
 		task->cl_arg = sched_ctx2;
+		task->possibly_parallel = 1;
 
 		/*submit tasks to context*/
 		ret = starpu_task_submit_to_ctx(task,sched_ctx2);