Repair a verified behavior in xilinx/xrt.
Repair a verified behavior in xilinx/xrt.: a task in OriGent-SFT-Data (Harbor dataset). On Linux PCIe systems, constructing xrt::device with a user-device index beyond the number of available user devices can terminate the process with a segmentation fault. For example, on a system with one user…
The task
On Linux PCIe systems, constructing `xrt::device` with a user-device index beyond the number of available user devices can terminate the process with a segmentation fault. For example, on a system with one user device, `xrt::device(1)` crashes instead of reporting that the requested device does not exist.
Part of henryen/OriGent-SFT-Data.