Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • SWIFTsim SWIFTsim
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 57
    • Issues 57
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 21
    • Merge requests 21
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • SWIFT
  • SWIFTsimSWIFTsim
  • Issues
  • #347
Closed
Open
Issue created Aug 11, 2017 by James Willis@jwillisDeveloper

Make scheduler follow engine task steal policy

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)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking