Open5
UbuntuにAMDGPU (カーネルモードドライバ) を入れる (EVO-X2)
ROCm が7.0.0 (2025/9/17: 7.0.1) になり、サポートにKernel 6.14が追加された。
元々6.11までのサポートだったのでわざわざ6.11に戻して運用していたが、その必要はなくなったみたい。
前提条件
GMKtec EVO-E2 / Ubuntu 24.04.03 LTS / Kernel: 6.14.0-29-generic
セキュアブートOFF
既存バージョンのアンインストール
ROCm
sudo apt autoremove rocm
sudo apt autoremove rocm-core
# Remove the repositories
sudo rm /etc/apt/sources.list.d/rocm.list
sudo rm /etc/apt/sources.list.d/rocm.list.save
# Clear the cache and clean the system
sudo rm -rf /var/cache/apt/*
sudo apt clean all
sudo apt update
# Restart the system
sudo reboot
AMDGPU
sudo apt autoremove amdgpu-dkms
sudo apt autoremove amdgpu-install
# Remove the repositories
sudo rm /etc/apt/sources.list.d/amdgpu.list
sudo rm /etc/apt/sources.list.d/amdgpu.list.save
# Clear the cache and clean the system
sudo rm -rf /var/cache/apt/*
sudo apt clean all
sudo apt update
# ゴミがないか見ておく
ls -l /etc/apt/sources.list.d/
下記リンクの手順で行う。リポジトリのリンクは更新されるので、リンク先を参照。
キーを保存
ls -l /etc/apt/keyrings
# ==> rocm.gpg があれば大丈夫だが、キーは更新されることがあるので注意
# なければ作成
sudo mkdir --parents --mode=0755 /etc/apt/keyrings
# 保存 or 更新
wget https://repo.radeon.com/rocm/rocm.gpg.key -O - | \
gpg --dearmor | sudo tee /etc/apt/keyrings/rocm.gpg > /dev/null
AMDGPUのインストール
# 最新のリンクは公式ドキュメントを参照
sudo tee /etc/apt/sources.list.d/amdgpu.list << EOF
deb [arch=amd64,i386 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/amdgpu/30.10.1/ubuntu noble main
EOF
sudo apt update
sudo apt install amdgpu-dkms
sudo reboot
amd-strix-halo-toolboxes などのコンテナを使う場合はシステムワイドにROCmをインストールする必要はない。
ROCmのインストール(任意)
こちらもリポジトリのリンクは公式ドキュメントを参照。
# 最新のリンクは公式ドキュメントを参照
sudo tee /etc/apt/sources.list.d/rocm.list << EOF
deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/rocm/apt/7.0.1 noble main
deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/graphics/7.0.1/ubuntu noble main
EOF
sudo tee /etc/apt/preferences.d/rocm-pin-600 << EOF
Package: *
Pin: release o=repo.radeon.com
Pin-Priority: 600
EOF
sudo apt update
sudo apt install rocm
sudo reboot
パフォーマンス
アップデート前後で特に変わりませんでした