XRT installed on Ubuntu has a pyopencl minimum version dependency (Python 2.7).
XRT will install the 2019 version of pyopencl, and will return an error if the 2015 version is installed.
Other xbutil / xbmgmt commands might successfully complete, but 'xbutil validate' will fail with the following:
Alternatively, depending on how the python packages were originally loaded on to the Ubuntu system, XRT installation can fail.
Please see the Solution section below for the additional installation steps needed.
Steps to resolve this issue:
1) Remove the XRT installation:
sudo apt remove xrt
Note: this will also remove any deployment or development shells on the system.
2) Remove the previous version of pyopencl:
sudo apt remove python-pyopencl
Note: if pyopencl was previously installed via pip rather than apt, this step will have no effect.
If you are unsure, there is no detrimental effect caused by running the command.
3) Update the pip installer:
sudo pip install --upgrade pip
4) Update pyopencl via the pip installation method:
sudo python -m pip install pyopencl
5) Reinstall XRT and any deployment or development shells.
Follow the instructions in the Alveo Data Center Accelerator Card installation guide to reinstall XRT.
Note: The "Version Found" column lists the version where the problem was first discovered.
|Boards & Kits||