Skip to content

Commit 4eb1f43

Browse files
sonalsandrej
andauthored
add Python binding for ELF-initialized hardware context (#9560) (#9580)
Co-authored-by: André Rösti <an.roesti@gmail.com>
1 parent 0385c88 commit 4eb1f43

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/python/pybind11/src/pyxrt.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ PYBIND11_MODULE(pyxrt, m) {
117117
.def(py::init<>())
118118
.def(py::init([](const xrt::device& d, const xrt::uuid& u) {
119119
return new xrt::hw_context(d, u);
120+
}))
121+
.def(py::init([](const xrt::device& device, const xrt::elf& elf) {
122+
return new xrt::hw_context(device, elf);
120123
}));
121124

122125
/*

0 commit comments

Comments
 (0)