Add Python bindings for xrt::graph and xrt::aie::bo. - #9956
Merged
Conversation
svup-xilinx
requested review from
rbramand-xilinx,
stsoe and
uday610
as code owners
August 5, 2026 06:58
svup-xilinx
force-pushed
the
VITIS-16811
branch
from
August 5, 2026 07:24
5d87cc6 to
130694e
Compare
Expose AIE graph execution and GMIO buffer APIs in pyxrt, and mark graph/AIE symbols with XRT_API_EXPORT so pyxrt links on Windows. Co-authored-by: Cursor <cursoragent@cursor.com> Signed-off-by: Srikanth Vuppala <120363307+svup-xilinx@users.noreply.github.com>
svup-xilinx
force-pushed
the
VITIS-16811
branch
from
August 5, 2026 07:25
130694e to
d8789fc
Compare
Contributor
|
clang-tidy review says "All clean, LGTM! 👍" |
1 similar comment
Contributor
|
clang-tidy review says "All clean, LGTM! 👍" |
stsoe
approved these changes
Aug 5, 2026
chvamshi-xilinx
approved these changes
Aug 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem solved by the commit
PyXRT covered core compute APIs but had no bindings for the AIE/Graph stack. Python users could not run AIE graphs, sync GMIO data, or use related buffer APIs without falling back to C/C++. This commit adds the initial implimentation of VITIS-16811 by exposing xrt::graph and xrt::aie::bo in pyxrt, and fixes Windows link failures caused by missing DLL exports on those symbols.
Bug / issue (if any) fixed, which PR introduced the bug, how it was discovered
No regression. This is new functionality for VITIS-16811. The C++ APIs have existed but were never bound in Python.
How problem was solved, alternative solutions (if any) and why they were rejected
Added pybind11 bindings in pyxrt.cpp for xrt::graph (run, wait, suspend, resume, end, reset, port_name update/read, etc.) and xrt::aie::bo (constructors and GMIO sync). Updated pyxrt.pyi with type stubs for the new APIs
Risks (if any) associated the changes in the commit
Low
What has been tested and how, request additional testing if necessary
Tested with simple graph test on VCK190 board
Documentation impact (if any)
pyxrt.pyi updated with new API stubs