AMD

RDNALLVM targetNavi
RX 5700/xt1.0gfx1010Navi10

尝试

  • LXC配置/var/lib/lxc/<lxc name>/config访问显卡

echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/rocm/apt/5.7.3 jammy main" \
    | sudo tee --append /etc/apt/sources.list.d/rocm.list
  • pytorch 安装,命令参考open in new window, 编译的包的位置在https://download.pytorch.org/whl/nightly/rocmx.x
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm5.7

检查

Linux无法正常启动,进入就会黑屏

  • 设置VGA显示:在启动时按ESC进入GRUB界面,按E选择对应的启动项编辑,在linux开头行处加入nomodeset参数,可以正常启动
  • 进入系统后检查日志,-b参数后面数字可以选择是上一次失败的启动,-0是本次启动,检查发现有报错amdgpu: smu driver if version not matched,cannot find any crtcs or sizes
sudo journalctl -b -1 -p 7|grep amdgpu
  • 最后发现是线缆没插紧,会导致Xorg无法正确返回屏幕大小,然后amdgpu驱动就会出错
Last Updated:
Contributors: greatofdream