🇫🇷 | 🇬🇧 | 🇩🇪 | 🇪🇸 | 🇵🇹 | 🇮🇹 | 🇳🇱 | 🇵🇱 | 🇷🇺 | 🇨🇳 | 🇯🇵 | 🇰🇷
安装指南
前提条件
sudo apt install linux-headers-$(uname -r) build-essential git dkms libcurl4-openssl-dev libtbb-dev pybind11-dev python3-pybind11
第一步:克隆仓库
git clone https://github.com/amd/xdna-driver.git && cd xdna-driver
git submodule update --init --recursive
第二步:编译XRT
cd xrt/build && ./build.sh -npu -opt
sudo apt reinstall ./Release/xrt_*-amd64-base.deb ./Release/xrt_*-amd64-npu.deb
第三步:编译XDNA驱动
cd ../../build && ./build.sh -release
sudo apt reinstall ./Release/xrt_plugin.*-x86_64-amdxdna.deb
安装后配置
sudo sh -c 'echo "* soft memlock unlimited" >> /etc/security/limits.conf'
sudo sh -c 'echo "* hard memlock unlimited" >> /etc/security/limits.conf'
echo 'source /opt/xilinx/xrt/setup.sh' >> ~/.bashrc
重启系统以应用更改。
| ← 首页 | 故障排除 → |