Commit 39762a5f authored by BRAMAS Berenger's avatar BRAMAS Berenger

make sure it compile with trunck starpu

parent 71f4cd1a
......@@ -706,7 +706,11 @@ static struct starpu_task *pop_task_heteroprio_policy(unsigned sched_ctx_id)
unsigned child_sched_ctx = starpu_sched_ctx_worker_is_master_for_child_ctx(workerid, sched_ctx_id);
if(child_sched_ctx != STARPU_NMAX_SCHED_CTXS){
starpu_sched_ctx_revert_task_counters(sched_ctx_id, task->flops);
#if (STARPU_MAJOR_VERSION >= 1) && (STARPU_MINOR_VERSION >= 3)
starpu_sched_ctx_move_task_to_ctx(task, child_sched_ctx, 1);
#else
starpu_sched_ctx_move_task_to_ctx(task, child_sched_ctx);
#endif
return NULL;
}
}
......
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