Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • sac2c sac2c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 418
    • Issues 418
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Merge requests
  • !638

Dynamic adaptation changed to a json interface to support future changes and more complicated patterns

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Jordy Aaldering requested to merge ecodynamic-json into develop Apr 16, 2026
  • Overview 0
  • Commits 5
  • Pipelines 0
  • Changes 3

Communication with an external resource controller through a Unix domain socket letterbox using JSON messages.

The runtime sends JSON objects containing bookkeeping information and measurements for a parallel region, such as:

  • capabilities (e.g. maximum number of threads),
  • with-loop identifiers (region uid), and
  • measurement samples (runtime, usertime, energy).

The controller replies with JSON demand messages, currently containing the desired number of threads for the next iteration of a region.

A text-based JSON protocol is used intentionally so new fields can be added by the controller without breaking backward compatibility with older runtime versions that ignore unknown keys. In addition, this enables more complicated communication patterns in the future, such as pinning strategies, or even broadcasting different implementation of the same algorithm to then dynamically find the best one.

Edited Apr 17, 2026 by Jordy Aaldering
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: ecodynamic-json