Skip to content

Add Python bindings for xrt::graph and xrt::aie::bo. - #9956

Merged
chvamshi-xilinx merged 1 commit into
Xilinx:masterfrom
svup-xilinx:VITIS-16811
Aug 6, 2026
Merged

Add Python bindings for xrt::graph and xrt::aie::bo.#9956
chvamshi-xilinx merged 1 commit into
Xilinx:masterfrom
svup-xilinx:VITIS-16811

Conversation

@svup-xilinx

Copy link
Copy Markdown
Collaborator

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

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

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

Comment thread src/runtime_src/core/include/xrt/xrt_aie.h Outdated
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>
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

1 similar comment
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@chvamshi-xilinx
chvamshi-xilinx merged commit d269eb9 into Xilinx:master Aug 6, 2026
22 checks passed
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.

3 participants