Skip to content
Snippets Groups Projects

Fix scheduler steal policy

Merged James Willis requested to merge fix_scheduler_steal_policy into master
+ 2
2
Compare changes
  • Side-by-side
  • Inline
Files
+ 1
1
@@ -4483,7 +4483,7 @@ void engine_init(struct engine *e, struct space *s,
/* Init the scheduler with enough tasks for the initial sorting tasks. */
const int nr_tasks = 2 * s->tot_cells + 2 * e->nr_threads;
scheduler_init(&e->sched, e->s, nr_tasks, nr_queues, scheduler_flag_steal,
scheduler_init(&e->sched, e->s, nr_tasks, nr_queues, (policy & scheduler_flag_steal),
e->nodeID, &e->threadpool);
/* Allocate and init the threads. */
Loading