XRT
XRT copied to clipboard
CR-1217444 Callback on xrt::run causes "kds monitor died" and hang
Problem solved by the commit
Trap unsupported managed execution earlier.
Bug / issue (if any) fixed, which PR introduced the bug, how it was discovered
We don't plan on supporting callbacks for xrt::run objects for RyzenAI. This would kill performance. Callbacks are used under the hood in the OpenCL implementation and are indeed supported for XRT native APIs on Alveo, but not for RyzenAI
How problem was solved, alternative solutions (if any) and why they were rejected
This PR changes code such that an exception is thrown when an xrt::run object is started after adding a callback on the run object.