Skip to content
Snippets Groups Projects
Closed Make scheduler follow engine task steal policy
  • View options
  • Make scheduler follow engine task steal policy

  • View options
  • Closed Issue created by James Willis

    The scheduler currently implements task stealing by default:

    scheduler_init(&e->sched, e->s, nr_tasks, nr_queues, scheduler_flag_steal,
                   e->nodeID, &e->threadpool);

    using the macro defined in scheduler.h:

    #define scheduler_flag_steal 1

    it should use the engine policy passed into engine_init from main.c instead.

    Suggested changes:

    engine_init()

    scheduler_init(&e->sched, e->s, nr_tasks, nr_queues, (policy & scheduler_flag_steal),
                   e->nodeID, &e->threadpool);

    scheduler.h

    #define scheduler_flag_steal (1 << 1)

    Linked items ... 0

  • Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first
    Loading Loading Loading Loading Loading Loading Loading Loading Loading Loading