cancel
Showing results for 
Search instead for 
Did you mean: 

PC Drivers & Software

bobytheworm
Journeyman III

clinfo device not found ubuntu server 20.04.3

Hey,

There is like a million post on those issues already, for various versions. But I definitely cannot manage to make it work.

This is a clean install on ubuntu server 20.04.3, with amdgpu-pro 21.30.

The gpu is a RX 580.

I installed the driver with "amdgpu-install --headless --opencl=legacy,rocr"

Added the user to video/render.

The driver is installing correcly, no errors with dkms.

The platform is detected with clinfo but no devices available.

If anyone got any clue what might go wrong that'd be greatly appreciated.

Thanks.

0 Likes
1 Solution
bobytheworm
Journeyman III

So that wasn't a driver issue after all. My bad.

The driver was inside a VM with gpu passthrough.

Here is what I did.

- install amgpu-pro in the host

- add enable iommu inside the guest (with GRUB_CMDLINE_LINUX="amd_iommu=on iommu=pt") (was already inside the host)

- unblacklist amgpu inside the host

- reboot a few times

- detach the gpu from with host with

 

 

virsh nodedev-detach <pci_id>

 

 

(seems like it has to be reattached/detached between vm reboot, or clinfo will fail. A host reboot might help)

- and clinfo works inside the VM

Some steps might be unnecessary idk... hopefully that might be of some use for some people in the future.

Peace.

View solution in original post

0 Likes
2 Replies
bobytheworm
Journeyman III

So that wasn't a driver issue after all. My bad.

The driver was inside a VM with gpu passthrough.

Here is what I did.

- install amgpu-pro in the host

- add enable iommu inside the guest (with GRUB_CMDLINE_LINUX="amd_iommu=on iommu=pt") (was already inside the host)

- unblacklist amgpu inside the host

- reboot a few times

- detach the gpu from with host with

 

 

virsh nodedev-detach <pci_id>

 

 

(seems like it has to be reattached/detached between vm reboot, or clinfo will fail. A host reboot might help)

- and clinfo works inside the VM

Some steps might be unnecessary idk... hopefully that might be of some use for some people in the future.

Peace.

0 Likes

@bobythewormthank you for sharing your solution!

It did help at least a little bit in my case. As pointed out in this thread there is currently a problem with OpenCL with Debian 11.

Are you also using Ubuntu 20.04 at the host or something else?

 

Do you have an idea, why the driver even needs to be installed at the host?

I thought PCIe passthrough would hand over the whole device...

0 Likes