Skip to content
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

WIP: Add runner for run-recipe #8608

Merged
merged 1 commit into from
Nov 20, 2024
Merged

WIP: Add runner for run-recipe #8608

merged 1 commit into from
Nov 20, 2024

Conversation

stsoe
Copy link
Collaborator

@stsoe stsoe commented Nov 20, 2024

Problem solved by the commit

A run-recipe defines how to execute a graph model using XRT.

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

These changes contain a stand-alone runner class that reads and executes a run-recipe json file. The idea is to have tools generate the run-recipe along with xclbin and control code for kernels.

The format (schema) of the recipe json is loosely defined. The implementation of the runner drove some of the defintion of the json format.

A run-recipe is associated with exactly one xclbin which, when loaded into a region (partition) on the device, can run the recipe.

This is work-in-progress, base-lined, and validated for today's NPU TXN control code. The runner will change shortly when we obsolete xclbin for NPU.

The recipe will not work with Alveo as the runner uses xrt::runlist for execution and xrt::runlist is not supposed in Alveo.

Risks (if any) associated the changes in the commit

Unused code

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

NPU TXN ctrl code inference

A run-recipe defines how to execute a graph model using XRT.

This changes contain a stand-alone runner class that reads and
executes a run-recipe json file. The idea is to have tools
geneate the run-recipe along with xclbin and control code for kernels.

The format (schema) of the recipe json is loosely defined. The
implementation of the runner drove some of the defintion of the json
format.

A run-recipe is associated with exactly one xclbin which, when loaded
into a region (partition) on the device, can run the recipe.

This is work-in-progress and is base-lined and validated for today's
NPU TXN control code.  The runner will change shortly when we obsolete
xclbin for NPU.

The recipe will not work with Alveo as the runner uses xrt::runlist
for execution and xrt::runlist is not supposed in Alveo.

Signed-off-by: Soren Soe <[email protected]>
@stsoe stsoe merged commit f0d8f58 into Xilinx:master Nov 20, 2024
20 checks passed
@stsoe stsoe deleted the xrt.runner branch November 20, 2024 20:05
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