After trying many things I stumbled upon this Github script:
https://gist.github.com/kytulendu/3351b ... 1ea3c95cbe
This just worked, it downloads the appropriate AMD proprietary drivers and installs the necessary portions of it to get OpenCL working:
hnapel@XPS8500:~/Downloads/3351b5d0b4f947e19df36b1ea3c95cbe-26bebb338076090ebdb252a8e93d3d693694f104$ clinfo
Number of platforms 1
Platform Name AMD Accelerated Parallel Processing
Platform Vendor Advanced Micro Devices, Inc.
Platform Version OpenCL 2.1 AMD-APP (3143.9)
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd cl_amd_event_callback cl_amd_offline_devices
Platform Host timer resolution 1ns
Platform Extensions function suffix AMD
Platform Name AMD Accelerated Parallel Processing
Number of devices 1
Device Name Baffin
Device Vendor Advanced Micro Devices, Inc.
Device Vendor ID 0x1002
Device Version OpenCL 1.2 AMD-APP (3143.9)
Driver Version 3143.9
Device OpenCL C Version OpenCL C 1.2
Device Type GPU
Device Board Name (AMD) Radeon RX 560 Series
Device Topology (AMD) PCI-E, 01:00.0
Device Profile FULL_PROFILE
Device Available Yes
Compiler Available Yes
Linker Available Yes
<...>
This is not a super powerful card, but since it is quiet and does not produce a lot of heat, I can run it 24x7, I also have an RX 570 (running on Windows...), it may seem like a small version increase but that card is actually about twice as powerful as the RX 560 but it produces more heat and noise so I only run it for one WU at a time at night (that runs for about 8 hours), so I am glad I got this to work do still make some effort.
HOWTO: How I got my Radeon RX 560 to work on Ubuntu 20.04
Moderators: Site Moderators, FAHC Science Team
Re: HOWTO: How I got my Radeon RX 560 to work on Ubuntu 20.0
I did the exact same thing this spring. The 470/570 (Polaris 10/20) cards are basically two 460/560(Polaris 11/21) GCN 4 dies combined. I've running three 460/560s for a while for folding. The crypto miners were selling them for a song and they do way better than older cards.