Open5

UbuntuにAMDGPU (カーネルモードドライバ) を入れる (EVO-X2)

LibratechLibratech

https://rocm.docs.amd.com/projects/install-on-linux/en/latest/reference/system-requirements.html#supported-distributions

ROCm が7.0.0 (2025/9/17: 7.0.1) になり、サポートにKernel 6.14が追加された。

https://zenn.dev/libratech/scraps/fc5f9034a5ea2f

元々6.11までのサポートだったのでわざわざ6.11に戻して運用していたが、その必要はなくなったみたい。

前提条件

GMKtec EVO-E2 / Ubuntu 24.04.03 LTS / Kernel: 6.14.0-29-generic
セキュアブートOFF

LibratechLibratech

既存バージョンのアンインストール

ROCm

https://rocm.docs.amd.com/projects/install-on-linux/en/docs-6.4.3/install/install-methods/package-manager/package-manager-ubuntu.html#uninstall-rocm-meta-packages

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

https://instinct.docs.amd.com/projects/amdgpu-docs/en/latest/install/detailed-install/package-manager/package-manager-ubuntu.html#uninstalling

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/
LibratechLibratech

下記リンクの手順で行う。リポジトリのリンクは更新されるので、リンク先を参照。

https://instinct.docs.amd.com/projects/amdgpu-docs/en/latest/install/detailed-install/package-manager/package-manager-ubuntu.html

キーを保存

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
LibratechLibratech

amd-strix-halo-toolboxes などのコンテナを使う場合はシステムワイドにROCmをインストールする必要はない。

https://github.com/kyuz0/amd-strix-halo-toolboxes

ROCmのインストール(任意)

こちらもリポジトリのリンクは公式ドキュメントを参照。

https://rocm.docs.amd.com/projects/install-on-linux/en/latest/install/install-methods/package-manager/package-manager-ubuntu.html

# 最新のリンクは公式ドキュメントを参照
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
LibratechLibratech

パフォーマンス

アップデート前後で特に変わりませんでした