Explorar el Código

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

Nathalie Furmento hace 10 años
padre
commit
3fcbeee67e
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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);