I have a pretty old laptop with an AMD dGPU and I am trying to do OpenCL compute on it to make sure that device switching is handled correctly in some stuff I am testing. All the instructions I see to install amdgpu drivers is to have --no-dkms as an install flag.
Doing
amdgpu-install --usecase=opencl --no-dkms --opencl=legacy
results in
ERROR: using '--no-dkms' with '--opencl=legacy' is not supported
Specs:
HP Pavilion 15-br158cl
CPU: i7-8550u (HD 620 iGPU and this has working compute)
GPU: Radeon 530 2 GB DDR3
RAM: 24 GB
OS: PopOS 22.04 6.12.10-76061203-generic
Clinfo -l output
Platform #0: Intel(R) OpenCL HD Graphics
-- Device #0: Intel(R) UHD Graphics 620 [0x5917]
Platform #1: AMD Accelerated Parallel Processing
As you can see, only the platform, not a second device. Is there anything that I am missing?
I did post this on reddit in the PopOS subreddit. https://www.reddit.com/r/pop_os/comments/1kvza44/is_there_a_way_to_use_amdgpudkms_without_bricking/
Sounds like those flags are mutually exclusive. Does it work if you only use one or the other?
If I use no dkms and no legacy, I get the current clinfo result. No detected gpu.
Problem is that popos has their own thing that will conflict with dkms and every single tutorial or guide for installing amdgpu drivers uses no-dkms as an install flag.
I need this to do opencl compute.
popos has their own thing that will conflict with dkms
So you obviously need to manually configure that own thing to build the driver instead of relying on the installer.
I haven’t found any documentation on this except “don’t do it lol”. Which is why I’m confused. How?
Edit: finding more info and discovering that people didn’t have bricked systems after using dkms which leads me to assume that later versions of popos do not have the issue that people were trying to avoid.
IDK what did you mean by “their own thing”. Even if they created something similar to dkms, it is unlikely that it would conflict with dkms. But anyway it is better to find more information from official source.
Try using a distro that is less ultra optimized for gaming on modern hardware. You have a legacy system, try something like debian or arch
I used to use Bunsenlabs before moving to popos due to popos handling the dgpu better. Thats what I’m thinking as well.