I understand that AMD only supports LTS distributions, but has anyone managed to get OpenCL or ROCm running with a kernel newer than 5.4?
I had PopOS 20.10 set up running kernel 5.11.7 and am 90% certain I had it running before I managed to break things really badly while setting up VFIO and needed to reinstall. I can’t remember what I did and haven’t been able to replicate it since so it’s possible I was just tired and confused.
Long story short, I’d really prefer to run a more recent kernel but I also need OpenCL for things like Blender and overnight mining. From what I understand there was some sort of command removed from newer kernels that is specifically needed by amdgpu-dkms and rock-, rocm-dkms which is where my attempts always fail.
Has anyone found a way around this, or am I doomed to use kernel 5.4 until AMD releases newer drivers?
Current setup as of this moment:
PopOS 20.10 w/ kernel 5.12-rc4
AMD Ryzen 3900x
MSI Radeon 6800xt
Sapphire Radeon 5700xt Nitro+
Asrock X570 Taichi, BIOS 4.50
Edit: I should add that the official ROCm documentation includes this:
"Using Debian-based ROCm with Upstream Kernel Drivers
You can install ROCm user-level software without installing AMD’s custom ROCk kernel driver. The kernel used must have the HSA kernel driver option enabled and compiled into the amdgpu kernel driver. To install only ROCm user-level software, run the following commands instead of installing rocm-dkms:
sudo apt update sudo apt install rocm-dev echo 'SUBSYSTEM=="kfd", KERNEL=="kfd", TAG+="uaccess", GROUP="video"' | sudo tee /etc/udev/rules.d/70-kfd.rules
I’ve tried installing rocm-dev and running the subsequent command, but haven’t had success. So far my Google-fu is failing me on how to enable the HSA kernel driver option, and how to compile that in to the amdgpu kernel driver.