Page 3 of 4

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

Posted: Sat Feb 18, 2023 6:42 pm
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.

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

Posted: Sat Feb 18, 2023 7:03 pm
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

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

Posted: Sat Feb 18, 2023 7:29 pm
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.

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

Posted: Sat Feb 18, 2023 7:32 pm
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

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

Posted: Sat Feb 18, 2023 8:55 pm
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.

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

Posted: Sat Feb 18, 2023 9:26 pm
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.

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

Posted: Wed Feb 22, 2023 10:40 am
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.

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

Posted: Wed Feb 22, 2023 10:56 am
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?

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

Posted: Thu Feb 23, 2023 5:45 pm
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.

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

Posted: Thu Feb 23, 2023 7:12 pm
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

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

Posted: Thu Feb 23, 2023 10:27 pm
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

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

Posted: Fri Feb 24, 2023 9:04 am
by muziqaz
Is this Linux thing to create a separate group for each running app? Or is this Fahclient?

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

Posted: Fri Feb 24, 2023 10:10 am
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.

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

Posted: Fri Feb 24, 2023 10:31 am
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?

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

Posted: Fri Feb 24, 2023 10:33 am
by muziqaz
P.S. OP is running Fahclient v7. Is that one also running under its own user group?