Skip to content

Runner.profile#11

Closed
stsoe wants to merge 4 commits into
masterfrom
runner.profile
Closed

Runner.profile#11
stsoe wants to merge 4 commits into
masterfrom
runner.profile

Conversation

@stsoe
Copy link
Copy Markdown
Owner

@stsoe stsoe commented Apr 3, 2025

Problem solved by the commit

Bug / issue (if any) fixed, which PR introduced the bug, how it was discovered

How problem was solved, alternative solutions (if any) and why they were rejected

Risks (if any) associated the changes in the commit

What has been tested and how, request additional testing if necessary

Documentation impact (if any)

stsoe added 4 commits April 1, 2025 13:54
This WIP.   Adding execution profile data that constraints how
a run recipe is executed by the xrt::runner class.

The profile is a separate json that is paired with a recipe when
instantiating an xrt::runner.

The profile is optional, while the recipe is required.  The
application can use the xrt::runner APIs to bind external resources or
use the profile json to specify the binding and otherwise constaint
the execution of a recipe.

Signed-off-by: Soren Soe <2106410+stsoe@users.noreply.github.com>
Signed-off-by: Soren Soe <2106410+stsoe@users.noreply.github.com>
Signed-off-by: Soren Soe <2106410+stsoe@users.noreply.github.com>
The std::vector return type by reference was awkward.
Should really be a std::span (c++20).

Update xrt::xclbin ctor to with std::string_view.

Add comments to runner.cpp.

Signed-off-by: Soren Soe <2106410+stsoe@users.noreply.github.com>
@stsoe stsoe closed this Apr 3, 2025
@stsoe stsoe reopened this Apr 3, 2025
Copy link
Copy Markdown

@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

: base_dir{"."}
{}

file_repo(std::filesystem::path basedir)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

warning: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [hicpp-explicit-conversions]

Suggested change
file_repo(std::filesystem::path basedir)
explicit file_repo(std::filesystem::path basedir)

@stsoe stsoe closed this Apr 3, 2025
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