cancel
Showing results for 
Search instead for 
Did you mean: 

Drivers & Software

alfredopalhares
Journeyman III

Cannot Install OpenCL drivers on Ubuntu on 20.04

Hello,

 

I have tried a thousand ways now, and its been really hard to get OpenCL to work on ubuntu.

 

I have the following system:

````Linux mymachiner 5.4.0-52-generic #57-Ubuntu SMP Thu Oct 15 10:57:00 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

I downgraded the kernel version due to errors that are already discussed on this forum.

and then I have downloaded amdgpu-pro-20.45-1188099-ubuntu-20.04  and installed them with:

sudo ./amdgpu-pro-install --opencl=pal --no-32 --headless

My cards:

lspci | grep -i amd
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] (rev e7)
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] (rev e7)
05:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]
08:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] (rev e7)
08:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]
09:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] (rev e7)
09:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]

and the kernel modules builds fine and so on, but the are now available OpenCL devices via clinfo, this is what dmesg | grep -i amd says:

[ 0.000000] Linux version 5.4.0-52-generic (buildd@lgw01-amd64-060) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #57-Ubuntu SMP Thu Oct 15 10:57:00 UTC 2020 (Ubuntu 5.4.0-52.57-generic 5.4.65)
[ 0.000000] AMD AuthenticAMD
[ 0.010249] RAMDISK: [mem 0x337a1000-0x35bc7fff]
[ 8.137515] amdkcl: loading out-of-tree module taints kernel.
[ 8.137539] amdkcl: module verification failed: signature and/or required key missing - tainting kernel
[ 8.227549] amdgpu: Unknown symbol amd_iommu_bind_pasid (err -2)
[ 8.227741] amdgpu: Unknown symbol amd_iommu_set_invalidate_ctx_cb (err -2)
[ 8.227856] amdgpu: Unknown symbol amd_iommu_free_device (err -2)
[ 8.229085] amdgpu: Unknown symbol amd_iommu_unbind_pasid (err -2)
[ 8.229112] amdgpu: Unknown symbol amd_iommu_init_device (err -2)
[ 8.231622] amdgpu: Unknown symbol amd_iommu_set_invalid_ppr_cb (err -2)
[ 8.244317] amdgpu: Unknown symbol amd_iommu_bind_pasid (err -2)
[ 8.244484] amdgpu: Unknown symbol amd_iommu_set_invalidate_ctx_cb (err -2)
[ 8.244591] amdgpu: Unknown symbol amd_iommu_free_device (err -2)
[ 8.244965] amdgpu: Unknown symbol amd_iommu_unbind_pasid (err -2)
[ 8.244991] amdgpu: Unknown symbol amd_iommu_init_device (err -2)
[ 8.245207] amdgpu: Unknown symbol amd_iommu_set_invalid_ppr_cb (err -2)
[ 8.263168] amdgpu: Unknown symbol amd_iommu_bind_pasid (err -2)
[ 8.263345] amdgpu: Unknown symbol amd_iommu_set_invalidate_ctx_cb (err -2)
[ 8.263474] amdgpu: Unknown symbol amd_iommu_free_device (err -2)
[ 8.263930] amdgpu: Unknown symbol amd_iommu_unbind_pasid (err -2)
[ 8.263964] amdgpu: Unknown symbol amd_iommu_init_device (err -2)
[ 8.264214] amdgpu: Unknown symbol amd_iommu_set_invalid_ppr_cb (err -2)
[ 8.267450] amdgpu: Unknown symbol amd_iommu_bind_pasid (err -2)
[ 8.267600] amdgpu: Unknown symbol amd_iommu_set_invalidate_ctx_cb (err -2)
[ 8.267711] amdgpu: Unknown symbol amd_iommu_free_device (err -2)
[ 8.268089] amdgpu: Unknown symbol amd_iommu_unbind_pasid (err -2)
[ 8.268115] amdgpu: Unknown symbol amd_iommu_init_device (err -2)
[ 8.268312] amdgpu: Unknown symbol amd_iommu_set_invalid_ppr_cb (err -2)

 

I have a ASRock H110 Pro (with no PCI Express 3.0) so i cannot use the open source drivers...

Can anyone share me any opinoins and suggestions here?

0 Likes
3 Replies
mountkidd
Adept II

> sudo ./amdgpu-pro-install --opencl=pal --no-32 --headless

I believe you need to add  --opencl=legacy to get the drivers for Radeon RX 470/480/570/570X/580/580X/590

 

0 Likes

Hello,

I have tried all the opencl options, none of them work.

0 Likes

@alfredopalhares   Does cmd clinfo show anything?  Does your 'user' have group render?

0 Likes