AMD Radeon RX 580 not runnning on Linux 64-bits, FAHClient v7.6

It seems that a lot of GPU problems revolve around specific versions of drivers. Though AMD has their own support structure, you can often learn from information reported by others who fold.

Moderators: Site Moderators, FAHC Science Team

sbouwhuis
Posts: 14
Joined: Sun Feb 05, 2023 2:23 pm

Re: AMD Radeon RX 580 not runnning on Linux 64-bits, FAHClient v7.6

Post by sbouwhuis »

I had done that just now and no dependency issues to report. Will add it to the procedure: the machine will be reinstalled soon anyway, as it is now a quadro-boot.
muziqaz
Posts: 946
Joined: Sun Dec 16, 2007 6:22 pm
Hardware configuration: 7950x3D, 5950x, 5800x3D, 3900x
7900xtx, Radeon 7, 5700xt, 6900xt, RX 550 640SP
Location: London
Contact:

Re: AMD Radeon RX 580 not runnning on Linux 64-bits, FAHClient v7.6

Post by muziqaz »

You won't be able to fold, as fah requires opencl 1.2, Mesa driver only support 1.1, and AMD ROCm-OpenCL (which you get with amdgpu-install) does not support your GPU :(

Ok, one last thing:
https://repo.radeon.com/amdgpu-install/ ... -1_all.deb

This is Radeon Pro drivers, it should work for your card, and from what I am being told, it does not get bleeding edge packages due to stability and consistency reasons. And I believe it has rocm4.something, which supports your card for fah.
Installation procedure is same as with normal driver

If that fails, then shelve it, unfortunately
FAH Omega tester
Joe_H
Site Admin
Posts: 7937
Joined: Tue Apr 21, 2009 4:41 pm
Hardware configuration: Mac Pro 2.8 quad 12 GB smp4
MacBook Pro 2.9 i7 8 GB smp2
Location: W. MA

Re: AMD Radeon RX 580 not runnning on Linux 64-bits, FAHClient v7.6

Post by Joe_H »

muziqaz wrote: Sat Feb 18, 2023 6:30 pm OK, preliminary answer is that Polaris is no longer supported with ROCm-OpenCL Linux implementation, and there is no fallback to anything that would be suitable :(
So their support on Linux has the Polaris GPUs getting the same treatment older cards got under Linux a few years ago. Only possible solution is running an older video driver version, and that may have dependencies for older linux kernel versions.

AMD dropped OpenCL support for Terascale and GCN 1st generation GPUs on Linux some time ago. With Polaris being in the same boat now that extends the non-support of OpenCL in Linux to GCN 4th generation chips. AMD did keep OpenCL support in the Windows drivers longer, so the card should still be usable with Windows.
Image

iMac 2.8 i7 12 GB smp8, Mac Pro 2.8 quad 12 GB smp6
MacBook Pro 2.9 i7 8 GB smp3
muziqaz
Posts: 946
Joined: Sun Dec 16, 2007 6:22 pm
Hardware configuration: 7950x3D, 5950x, 5800x3D, 3900x
7900xtx, Radeon 7, 5700xt, 6900xt, RX 550 640SP
Location: London
Contact:

Re: AMD Radeon RX 580 not runnning on Linux 64-bits, FAHClient v7.6

Post by muziqaz »

It seems that Vega is now the bottom tier of rocm-opencl support in Linux. Windows has no rocm yet, so AMD hadn't had a chance to butcher opencl support yet :D
FAH Omega tester
Joe_H
Site Admin
Posts: 7937
Joined: Tue Apr 21, 2009 4:41 pm
Hardware configuration: Mac Pro 2.8 quad 12 GB smp4
MacBook Pro 2.9 i7 8 GB smp2
Location: W. MA

Re: AMD Radeon RX 580 not runnning on Linux 64-bits, FAHClient v7.6

Post by Joe_H »

Apparently this was known over a year ago - https://github.com/RadeonOpenCompute/ROCm/issues/1659. Not intentionally dropped at that point, but it appears AMD stopped validating changes in the stack on older GPUs. Going through the comments of this closed issue shows some workarounds exist(ed), but have no means of checking them myself.

Were the Polaris GPUs supported by the AMD proprietary drivers that were out before AMD started switching to ROCm? That might be the only way to run under Linux if the ROCm workarounds are not usable. But that will probably require running older Linux versions/kernels than the most recent ones available.
Image

iMac 2.8 i7 12 GB smp8, Mac Pro 2.8 quad 12 GB smp6
MacBook Pro 2.9 i7 8 GB smp3
muziqaz
Posts: 946
Joined: Sun Dec 16, 2007 6:22 pm
Hardware configuration: 7950x3D, 5950x, 5800x3D, 3900x
7900xtx, Radeon 7, 5700xt, 6900xt, RX 550 640SP
Location: London
Contact:

Re: AMD Radeon RX 580 not runnning on Linux 64-bits, FAHClient v7.6

Post by muziqaz »

Polaris has been dropped only with ROCm v5. V4 still supports it and it has opencl 2.0 too. That.deb package which I suggested has ROCm 4. I believe at one point in my struggles I had that one installed too. It does mess up the dependencies, but if PC is folding only, shortcuts can be made and things can be forced. If PC is for everything else, and FAH is just a side hobby on it, then I would not advise installing that driver.

In a way I understand AMD dropping support, my problem is that they did not document it in their driver release notes. driver acts as if opencl it contains is supporting the GPU.
FAH Omega tester
sbouwhuis
Posts: 14
Joined: Sun Feb 05, 2023 2:23 pm

Re: AMD Radeon RX 580 not runnning on Linux 64-bits, FAHClient v7.6

Post by sbouwhuis »

Just now downgraded to Ubuntu 18.04 with the associated amdgpu-install (https://www.amd.com/en/support/kb/relea ... inux-21-30 and which is even older than suggested Sat Feb 18, 2023 8:03 pm) and with FAHclient 7.4. Then also included `sudo apt install ocl-icd-opencl-dev`
The GPU fans spinned while the `amdgpu-install` was being executed, but stopped as soon as FAHClient was started.

What I find strange about this whole episode is that someone had already tried the same thing and succeeded (viewtopic.php?p=345255&hilit=RX580#p345255), that the installation instructions seem to agree with my hardware setup (https://foldingathome.org/support/faq/i ... ts/?lng=en) and that the GPU is whitelisted.
muziqaz
Posts: 946
Joined: Sun Dec 16, 2007 6:22 pm
Hardware configuration: 7950x3D, 5950x, 5800x3D, 3900x
7900xtx, Radeon 7, 5700xt, 6900xt, RX 550 640SP
Location: London
Contact:

Re: AMD Radeon RX 580 not runnning on Linux 64-bits, FAHClient v7.6

Post by muziqaz »

Fans are not indication of GPU workload :)
hope you done ocl-icd install before you installed Fahclient.
For the record you could have stayed with 22.04 Ubuntu and installed my suggested Radeon Pro drivers.

What is clinfo reporting? Or sudo clinfo?
Did you usermode video and render to your own username?
FAH Omega tester
sbouwhuis
Posts: 14
Joined: Sun Feb 05, 2023 2:23 pm

Re: AMD Radeon RX 580 not runnning on Linux 64-bits, FAHClient v7.6

Post by sbouwhuis »

Performed again a clean Ubuntu 22.04 install with all updates installed and then: Clinfo shows Number of platforms 0, even as root. Client is folding on CPU only and as testified by this (edited for brevity):

Code: Select all

$ cat /etc/fahclient/config.xml
<config>
  <!-- Client Control -->
  <fold-anon v='true'/>
  <!-- Folding Slot Configuration -->
  <gpu v='false'/>
  <!-- Folding Slots -->
  <slot id='0' type='CPU'/>
</config>
Please let me know whether there are other things to try.
muziqaz
Posts: 946
Joined: Sun Dec 16, 2007 6:22 pm
Hardware configuration: 7950x3D, 5950x, 5800x3D, 3900x
7900xtx, Radeon 7, 5700xt, 6900xt, RX 550 640SP
Location: London
Contact:

Re: AMD Radeon RX 580 not runnning on Linux 64-bits, FAHClient v7.6

Post by muziqaz »

Just to clarify:
did you run amdgpu-install after you installed driver.deb package?
Also, the sequence is quite important (I believe):
1: Please don't reinstall anymore Ubuntu :D
2: .deb installation
3: amdgpu-install
4: sudo apt install ocl-icd-opencl-dev
5: clinfo <---If shows platform and device available, great install (reinstall) fahclient, and create gpu slot
6: sudo clinfo <---if shows platform/device available proceed with 7, if not, jump to 9
7: usermod video and render (run groups to check if action was success)
8: clinfo <---If shows platform and device available, great install (reinstall) fahclient, and create gpu slot
9: if sudo clinfo and clinfo don't report any platforms, devices "sudo apt install" everything rocm-opencl or ocl related (usually rocm-opencl-sdk installs everything possible ;) )
meanwhile I'll ask is there are some specific ways to install radeon pro driver on top of desktop 580.
Edit
OK few suggestions:
amdgpu-install --opencl rocr,legacy
or
amdgpu-install --opencl=legacy
FAH Omega tester
calxalot
Site Moderator
Posts: 1115
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: AMD Radeon RX 580 not runnning on Linux 64-bits, FAHClient v7.6

Post by calxalot »

I think you want to add video and render groups to user “fahclient”, not to $HOSTNAME

Assuming commands above were generally correct, I think it would be

Code: Select all

sudo usermod -a -G video fahclient
sudo usermod -a -G render fahclient
muziqaz
Posts: 946
Joined: Sun Dec 16, 2007 6:22 pm
Hardware configuration: 7950x3D, 5950x, 5800x3D, 3900x
7900xtx, Radeon 7, 5700xt, 6900xt, RX 550 640SP
Location: London
Contact:

Re: AMD Radeon RX 580 not runnning on Linux 64-bits, FAHClient v7.6

Post by muziqaz »

Is this Linux thing to create a separate group for each running app? Or is this Fahclient?
FAH Omega tester
calxalot
Site Moderator
Posts: 1115
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: AMD Radeon RX 580 not runnning on Linux 64-bits, FAHClient v7.6

Post by calxalot »

The separate, unprivileged, user and group "fahclient" is to improve security.
It is common on all operating systems to run processes with minimum privilege.

On linux, for the service client to access the gpu, user "fahclient" needs to belong to groups video and/or render.

For v8 on linux, the client runs as user and group "fah-client".

On macOS, the client runs as "nobody" to keep things simple and because I didn't want to write a useradd script.
muziqaz
Posts: 946
Joined: Sun Dec 16, 2007 6:22 pm
Hardware configuration: 7950x3D, 5950x, 5800x3D, 3900x
7900xtx, Radeon 7, 5700xt, 6900xt, RX 550 640SP
Location: London
Contact:

Re: AMD Radeon RX 580 not runnning on Linux 64-bits, FAHClient v7.6

Post by muziqaz »

I thought me, as a non super user is running Fahclient.
So how does driver know to reveal video/render resources to any app which requires it?
I mean when driver is installed and opencl libs are installed, driver should add video and render to superuser and normal user groups. Now I install Fahclient or any other software which requires video/render and driver has no clue that it needs those things.
So you guys expect every Linux user start usermoding their video/render to Fahclient group?
Am I missing something here, or does that behaviour makes no sense?
FAH Omega tester
muziqaz
Posts: 946
Joined: Sun Dec 16, 2007 6:22 pm
Hardware configuration: 7950x3D, 5950x, 5800x3D, 3900x
7900xtx, Radeon 7, 5700xt, 6900xt, RX 550 640SP
Location: London
Contact:

Re: AMD Radeon RX 580 not runnning on Linux 64-bits, FAHClient v7.6

Post by muziqaz »

P.S. OP is running Fahclient v7. Is that one also running under its own user group?
FAH Omega tester
Post Reply