[Documentation]: Installation error Ubuntu 22.04 workaround
FabianWildgrube opened this issue · comments
Description of errors
I ran into an issue with ROCm installation on Ubuntu 22.04 with a multi-version setup.
The following commands:
sudo apt update
wget https://repo.radeon.com/amdgpu-install/6.0.2/ubuntu/jammy/amdgpu-install_6.0.60002-1_all.deb
sudo apt install ./amdgpu-install_6.0.60002-1_all.deb
sudo amdgpu-install --rocmrelease=6.0.2 --usecase=rocm
resulted in the following error during the amdgpu-install
command:
Processing triggers for man-db (2.10.2-1) ...
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/amdgpu/5.18.13-1577590.22.04/source/dkms.conf does not exist.
WARNING: amdgpu dkms failed for running kernel
I had seen this error before on older ROCm versions, so luckily I knew what to do:
sudo dpkg-reconfigure amdgpu-dkms
This could be added to the official documentation in a "Common issues" section or something similar.
Attach any links, screenshots, or additional evidence you think will be helpful.
No response
I am running into this with WSL2 on Windows 11. You can run with --no-dkms
but that really doesn't solve anything. I have not found any way of getting dkms loaded on my ubuntu 22.04.04 instance.
But you don't need dkms on Ubuntu 22.04 (it runs perfectly well with the amdgpu driver that's included in the stock kernel).
But you don't need dkms on Ubuntu 22.04 (it runs perfectly well with the amdgpu driver that's included in the stock kernel).
The installation docs only say this:
The installer script tries to install the kernel mode driver along with the requested use cases. This might be unnecessary as in the case of docker containers or you may wish to keep a specific version when using multi-version installation, and not have the last installed version overwrite the kernel mode driver.
To skip the installation of the kernel-mode driver add the
--no-dkms
option when calling the installer script.
Maybe this could be extended with a note that mentions --no-dkms is recommended for Ubuntu 22.04?
So after running sudo amdgpu-install --usecase=rocm -y
and the dkms failing to install. I try to run rocminfo
with this result
rocminfo
ROCk module is NOT loaded, possibly no GPU devices
This is repeatable with --no-dkms
in the amdgpu-install
step.
Again this is ubuntu 22.04.04 kernel 15.5 on WSL2 windows 11.
I have a RX 7900 XTX and the latest drivers installed on the host machine. Also running a 7800X3D.
Any follow up here? I would love some verification that room on WSL2 ubuntu 22.04.04 does indeed work.