Ver código fonte

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

Nathalie Furmento 10 anos atrás
pai
commit
3fcbeee67e
1 arquivos alterados com 2 adições e 0 exclusões
  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);