Skip to content

Extend xrt::runner profile json with QoS and sleep #8907

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 25, 2025
Merged

Conversation

stsoe
Copy link
Collaborator

@stsoe stsoe commented Apr 24, 2025

Problem solved by the commit

Support hwctx configuration parameters in profile json. Simple key/value pairs designating configuration parameters for hardware context creation.

  "qos": {
    "gops": 10,
    "fps": 30
  },
  ...

The json schema doesn't enforce key names or value ranges, XRT will warn but ignore unrecoqnized keys. Improper values are implementation defined.

Support sleep in milliseconds between each iteration of a recipe.

  "execution" : {
    "iterations": 500,
    "iteration" : {
      ...
      "wait": true,
      "sleep": 1000,
      ...
    }
  }

sleep specifies how many milliseconds to sleep in between iterations of the recipe. If both wait and sleep are specified, sleep will be applied after wait completes.

Support hwctx configuration parameters in profile json. Simple
key/value pairs designating configuration parameters for hardware
context creation.

```
  "qos": {
    "gops": 10,
    "fps": 30
  },
  ...
```
The json schema doesn't enforce key names or value ranges, XRT will
warn but ignore unrecoqnized keys. Improper values are implementation
defined.

Support sleep in milliseconds between each iteration of a recipe.

```
  "execution" : {
    "iterations": 500,
    "iteration" : {
      "bind": false,
      "init": true,
      "wait": true,
      "sleep": 1000,
      "validate": true
    }
  }
```
`sleep` specifies how many milliseconds to sleep in between iterations
of the recipe.  If both `wait` and `sleep` are specified, sleep will
be applied after wait completes.

Signed-off-by: Soren Soe <[email protected]>
@stsoe stsoe requested a review from rozumx as a code owner April 24, 2025 20:21
Signed-off-by: Soren Soe <[email protected]>
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

@stsoe stsoe merged commit d6a714d into Xilinx:master Apr 25, 2025
19 checks passed
@stsoe stsoe deleted the runner branch April 25, 2025 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant